updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sandy-hg / PKGBUILD
blobe15aac8e8a0944927637d7caa5e7e2d8d08214ed
1 #Contributor: Rafael Garcia <rafael.garcia.gallego@gmail.com>
3 pkgname=sandy-hg
4 pkgver=70
5 pkgrel=1
6 pkgdesc="Simple ncurses text editor, latest hg pull"
7 url="http://tools.suckless.org/sandy/"
8 arch=('i686' 'x86_64')
9 license=('MIT')
10 conflicts=('sandy')
11 provides=('sandy')
12 depends=('ncurses')
13 makedepends=('mercurial' 'sed' 'pkgconfig')
14 optdepends=('dmenu: X11 integration' 'xsel: X11 integration')
15 source=()
16 md5sums=()
18 _hgroot='http://hg.suckless.org/'
19 _hgrepo='sandy'
21 build() {
22         cd $startdir/src
24         # update the repo, else clone a new one
25         if [ -d $_hgrepo ]; then
26                 cd $_hgrepo
27                 make clean
28                 hg pull -u
29         else
30                 hg clone ${_hgroot}/${_hgrepo}
31                 cd $_hgrepo
32         fi
34         make PREFIX=/usr DESTDIR=$pkgdir clean install || return 1
36         mkdir -p $startdir/pkg/usr/share/licenses/sandy
37         cp LICENSE $startdir/pkg/usr/share/licenses/sandy