1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
8 pkgdesc='Simple virtual terminal emulator for X'
9 url='http://hg.suckless.org/st'
10 arch=('i686' 'x86_64')
13 makedepends=('mercurial' 'ncurses')
18 _hgroot='http://hg.suckless.org/'
24 cd "${_hgrepo}" && hg pull -u && cd .. ||
25 hg clone "${_hgroot}${_hgrepo}"
27 rm -fr build; cp -a "${_hgrepo}" build; cd build
28 make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
33 make PREFIX=/usr DESTDIR="${pkgdir}" TERMINFO="${pkgdir}/usr/share/terminfo" install
34 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
35 install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"