st/PKGBUILD

49 lines
1.4 KiB
Bash
Raw Normal View History

# Maintainer: David Thurstenson <thurstylark@gmail.com>
2016-10-18 23:09:50 +00:00
pkgname=st-tl
_pkgname=st
pkgver=0.7.r17.gc63a87c
pkgrel=2
2016-10-18 23:09:50 +00:00
pkgdesc='A simple virtual terminal emulator for X.'
arch=('i686' 'x86_64')
license=('MIT')
depends=('libxft' 'libxext' 'xorg-fonts-misc' 'dmenu' 'xurls')
makedepends=('ncurses')
conflicts=('st')
2016-10-18 23:09:50 +00:00
url="http://st.suckless.org"
source=(git://git.suckless.org/st
tl-config.diff
st-externalpipe.diff::http://st.suckless.org/patches/st-externalpipe-20161125-e448324.diff
st-hidecursor.diff::http://st.suckless.org/patches/st-hidecursor-20160727-308bfbf.diff)
md5sums=('SKIP'
'd097c0d6327c5df49ea49000b8f248e1'
'c54c87489342b8d77c6dd8f3c2ff997e'
2016-10-18 23:09:50 +00:00
'8ff8a77b34dfc09a4dd0d2cf876d68e7')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
2016-10-18 23:09:50 +00:00
prepare() {
cd $srcdir/$_pkgname
2016-10-18 23:09:50 +00:00
# skip terminfo which conflicts with nsurses
sed -i '/\@tic /d' Makefile
cp config.def.h config.h
patch -Np1 -i $srcdir/tl-config.diff
patch -Np1 -i $srcdir/st-externalpipe.diff
patch -Np1 -i $srcdir/st-hidecursor.diff
2016-10-18 23:09:50 +00:00
}
build() {
cd $srcdir/$_pkgname
2016-10-18 23:09:50 +00:00
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
}
package() {
cd $srcdir/$_pkgname
2016-10-18 23:09:50 +00:00
make PREFIX=/usr DESTDIR="$pkgdir" TERMINFO="$pkgdir/usr/share/terminfo" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
}