public
Created

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
# Maintainer: Jens Staal <staal1978@gmail.com>
 
pkgname=sbase-hg
pkgver=20110624
pkgrel=1
pkgdesc="A suckless variant of the *nix core utilities"
arch=('i686' 'x86_64')
license=('MIT')
url="http://hg.suckless.org/sbase/"
makedepends=('mercurial')
 
 
build() {
cd $srcdir
 
# Update the repo, else clone a new one
if [ -d sbase ]; then
cd sbase
hg pull -u
cd $srcdir
else
hg clone http://hg.suckless.org/sbase
fi
rm -rf $srcdir/build # start fresh
cp -ar $srcdir/sbase $srcdir/build
}
 
package() {
cd $srcdir/build/
make DESTDIR=$pkgdir PREFIX=/opt install
mkdir -p $pkgdir/usr/share/licenses/$pkgname/
install -m644 $srcdir/build/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.