updated on Mon Jan 16 16:00:41 UTC 2012
[aur-mirror.git] / vpack / PKGBUILD
blob3e47178d0c630b0b917f92e059f4ff79a7a1e3da
1 # Maintainer: Estevao Valadao <estevao@archlinux-br.org>
3 pkgname=vpack
4 pkgver=20110909
5 pkgrel=2
6 pkgdesc="vABS Packaging Utility"
7 arch=('i686' 'x86_64')
8 url="http://github.com/estevao/vpack"
9 license=('GPL')
10 makedepends=('git')
11 depends=('sqlite3' 'zsync')
12 optdepends=('sudo')
13 install='vpack.install'
14 _gitbase='http://github.com/estevao/vpack.git'
15 _gitrepo='vpack'
17 package() {
18     cd "${srcdir}"
20     msg "Connecting to GitHub..."
21         
22     if [ -d "$startdir/src/$_gitrepo" ] ; then
23         cd "$_gitrepo" && git pull origin
24     else
25         git clone "$_gitbase"
26         cd "$_gitrepo"
27     fi
29     mkdir -p "$pkgdir/etc"
30     mkdir -p "$pkgdir/usr/bin/"
31     mkdir -p "$pkgdir/var/lib/vpack"
32     install -m 755 vpack "$pkgdir/usr/bin/vpack"
33     install -m 644 vpack.conf "$pkgdir/etc/vpack.conf"
35     if [ "$CARCH" = i686 ]; then
36         sed -i '/ARCH=/s|x86_64|i686|' "${pkgdir}/etc/vpack.conf"
37     fi