st

Luke's fork of the suckless terminal: vim-bindings, Xresrouces colors, transparency
Log | Files | Refs | README | LICENSE

PKGBUILD (1164B)


      1 # Maintainer:
      2 
      3 pkgname=st-luke-git
      4 _pkgname=st
      5 pkgver=0.8.2.r1062.2087ab9
      6 pkgrel=1
      7 epoch=1
      8 pkgdesc="Luke's simple (suckless) terminal with vim-bindings, transparency, xresources, etc. "
      9 url='https://github.com/LukeSmithxyz/st'
     10 arch=('i686' 'x86_64')
     11 license=('MIT')
     12 options=('zipman')
     13 depends=('libxft')
     14 makedepends=('ncurses' 'libxext' 'git')
     15 optdepends=('dmenu: feed urls to dmenu')
     16 source=('git://github.com/LukeSmithxyz/st')
     17 sha1sums=('SKIP')
     18 
     19 provides=("${_pkgname}")
     20 conflicts=("${_pkgname}")
     21 
     22 pkgver() {
     23 	cd "${_pkgname}"
     24 	printf "%s.r%s.%s" "$(awk '/^VERSION =/ {print $3}' config.mk)" \
     25 		"$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
     26 }
     27 
     28 prepare() {
     29 	cd $srcdir/${_pkgname}
     30 	# skip terminfo which conflicts with ncurses
     31 	sed -i '/tic /d' Makefile
     32 }
     33 
     34 build() {
     35 	cd "${_pkgname}"
     36 	make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
     37 }
     38 
     39 package() {
     40 	cd "${_pkgname}"
     41 	make PREFIX=/usr DESTDIR="${pkgdir}" install
     42 	install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
     43 	install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
     44 	install -Dm644 .Xdefaults "${pkgdir}/usr/share/doc/${pkgname}/Xdefaults.example"
     45 }