2019-04-05 03:38:48 +02:00
|
|
|
# Maintainer:
|
|
|
|
|
|
|
|
pkgname=st-luke-git
|
|
|
|
_pkgname=st
|
2019-05-08 21:03:05 +02:00
|
|
|
pkgver=0.8.2.r1062.2087ab9
|
2019-04-05 03:38:48 +02:00
|
|
|
pkgrel=1
|
2019-05-08 03:05:57 +02:00
|
|
|
epoch=1
|
2019-04-05 21:50:11 +02:00
|
|
|
pkgdesc="Luke's simple (suckless) terminal with vim-bindings, transparency, xresources, etc. "
|
2019-04-05 03:38:48 +02:00
|
|
|
url='https://github.com/LukeSmithxyz/st'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('MIT')
|
|
|
|
options=('zipman')
|
|
|
|
depends=('libxft')
|
|
|
|
makedepends=('ncurses' 'libxext' 'git')
|
|
|
|
optdepends=('dmenu: feed urls to dmenu')
|
|
|
|
source=('git://github.com/LukeSmithxyz/st')
|
|
|
|
sha1sums=('SKIP')
|
|
|
|
|
|
|
|
provides=("${_pkgname}")
|
|
|
|
conflicts=("${_pkgname}")
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${_pkgname}"
|
2019-05-08 21:03:05 +02:00
|
|
|
printf "%s.r%s.%s" "$(awk '/^VERSION =/ {print $3}' config.mk)" \
|
|
|
|
"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
2019-04-05 03:38:48 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $srcdir/${_pkgname}
|
2019-05-08 03:05:57 +02:00
|
|
|
# skip terminfo which conflicts with ncurses
|
2019-04-05 03:38:48 +02:00
|
|
|
sed -i '/tic /d' Makefile
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${_pkgname}"
|
|
|
|
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${_pkgname}"
|
|
|
|
make PREFIX=/usr DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
|
2021-02-19 16:50:35 +01:00
|
|
|
install -Dm644 Xdefaults "${pkgdir}/usr/share/doc/${pkgname}/Xdefaults.example"
|
2019-04-05 03:38:48 +02:00
|
|
|
}
|