2017-01-18 19:51:45 +00:00
|
|
|
# Maintainer: David Thurstenson <thurstylark@gmail.com>
|
2016-10-18 23:09:50 +00:00
|
|
|
|
2017-01-18 19:51:45 +00:00
|
|
|
pkgname=st-tl
|
|
|
|
_pkgname=st
|
2017-06-09 15:32:40 +00:00
|
|
|
pkgver=0.7.r26.gb331da5
|
|
|
|
pkgrel=1
|
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')
|
2017-01-18 19:51:45 +00:00
|
|
|
conflicts=('st')
|
2016-10-18 23:09:50 +00:00
|
|
|
url="http://st.suckless.org"
|
2017-06-09 15:32:40 +00:00
|
|
|
source=('git://git.suckless.org/st#commit=b331da550b290d54592b7ba11242c92f5a303a48'
|
2017-01-18 19:51:45 +00:00
|
|
|
tl-config.diff
|
2017-05-23 13:35:03 +00:00
|
|
|
st-externalpipe.diff
|
|
|
|
st-hidecursor.diff)
|
2017-01-18 19:51:45 +00:00
|
|
|
md5sums=('SKIP'
|
2017-06-09 15:32:40 +00:00
|
|
|
'4d1089c3845767e52f1bd79f0022acb0'
|
|
|
|
'a75266ee959386a4b50e0ad7d1c41580'
|
|
|
|
'487dc42b84ea464474aac527c2b47191')
|
2016-10-18 23:09:50 +00:00
|
|
|
|
2017-01-18 19:51:45 +00:00
|
|
|
pkgver() {
|
|
|
|
cd "$_pkgname"
|
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
2016-10-18 23:09:50 +00:00
|
|
|
prepare() {
|
2017-01-18 19:51:45 +00:00
|
|
|
cd $srcdir/$_pkgname
|
2016-10-18 23:09:50 +00:00
|
|
|
# skip terminfo which conflicts with nsurses
|
|
|
|
sed -i '/\@tic /d' Makefile
|
2017-01-18 19:51:45 +00:00
|
|
|
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() {
|
2017-01-18 19:51:45 +00:00
|
|
|
cd $srcdir/$_pkgname
|
2016-10-18 23:09:50 +00:00
|
|
|
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-01-18 19:51:45 +00:00
|
|
|
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"
|
|
|
|
}
|