diff options
author | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2015-03-26 10:00:35 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org> | 2015-03-26 10:01:09 +0100 |
commit | 197fe3ff54b8afec42aea3f62c1f491abb126d2f (patch) | |
tree | 40992b7c2cc6347c12b238903caf785f03ff47d8 /main/gitolite/APKBUILD | |
parent | 786b06948e649054927f5b7d47d30084207f61bd (diff) | |
download | aports-197fe3ff54b8afec42aea3f62c1f491abb126d2f.tar.bz2 aports-197fe3ff54b8afec42aea3f62c1f491abb126d2f.tar.xz |
main/gitolite: small APKBUILD improvements
Diffstat (limited to 'main/gitolite/APKBUILD')
-rw-r--r-- | main/gitolite/APKBUILD | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/main/gitolite/APKBUILD b/main/gitolite/APKBUILD index 83c3cf738a..245a646e47 100644 --- a/main/gitolite/APKBUILD +++ b/main/gitolite/APKBUILD @@ -4,31 +4,23 @@ pkgname=gitolite pkgver=3.6.2 -pkgrel=0 +pkgrel=1 pkgdesc='Centralized git server, with very fine-grained access control and many powerful features' url='http://github.com/sitaramc/gitolite' arch='noarch' license='GPL2' depends='git perl' install=$pkgname.pre-install -source="https://github.com/sitaramc/$pkgname/tarball/v${pkgver}/$pkgname-$pkgver.tar.gz" +source="https://github.com/sitaramc/$pkgname/archive/v${pkgver}.tar.gz" prepare() { - cd "$srcdir"/sitaramc-gitolite-* - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done - echo "v${pkgver}" > VERSION + cd "$srcdir"/$pkgname-$pkgver + echo $pkgver > VERSION } package() { - cd "$srcdir"/sitaramc-gitolite-* - - install -d "$pkgdir"/usr/lib/gitolite || return 1 - install -d "$pkgdir"/usr/bin || return 1 - ./install -to "$pkgdir"/usr/lib/gitolite || return 1 + install -d "$pkgdir"/usr/{bin,lib/gitolite} || return 1 + cp -a "$srcdir"/$pkgname-$pkgver/src/* "$pkgdir"/usr/lib/gitolite || return 1 ln -s /usr/lib/gitolite/gitolite "$pkgdir"/usr/bin/ || return 1 } |