updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / st-hg / PKGBUILD
blobbc9717de63051538fc28c606b800fc247f842e54
1 # Maintainer: Gaetan Bisson <bisson@archlinux.org>
2 # Contributor: Scytrin dai Kinthra <scytrin@gmail.com>
4 pkgname=st-hg
5 epoch=1
6 pkgver=223
7 pkgrel=1
8 pkgdesc='Simple virtual terminal emulator for X'
9 url='http://hg.suckless.org/st'
10 arch=('i686' 'x86_64')
11 license=('MIT')
12 depends=('libx11')
13 makedepends=('mercurial' 'ncurses')
15 provides=('st')
16 conflicts=('st')
18 _hgroot='http://hg.suckless.org/'
19 _hgrepo='st'
21 build() {
22         cd "${srcdir}"
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
31 package() {
32         cd "${srcdir}/build"
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"