Skip to content

Instantly share code, notes, and snippets.

@oshazard

oshazard/st-pizz.PKGBUILD Secret

Created Aug 23, 2015
Embed
What would you like to do?
pkgname=st-pizz
_pkgname=st
epoch=1
pkgver=20150129.fb845ba
pkgrel=2
pkgdesc='Simple virtual terminal emulator for X from Github.'
url='https://github.com/pizzooid/st'
arch=('i686' 'x86_64' 'armv7h')
license=('MIT')
depends=('libxft' 'ttf-droid')
makedepends=('ncurses' 'libxext' 'git')
source=('git://github.com/pizzooid/st')
sha1sums=('SKIP')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
pkgver() {
cd "${srcdir}/${_pkgname}"
git log -1 --format='%cd.%h' --date=short | tr -d -
}
build() {
cd "${srcdir}/${_pkgname}"
sed -i '/\@tic /d' Makefile
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd "${srcdir}/${_pkgname}"
make PREFIX=/usr DESTDIR="${pkgdir}" install
tic -s st.info -o${pkgdir}/usr/share/terminfo
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/licenses/${pkgname}/README"
}
md5sums=('SKIP')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment