diff options
Diffstat (limited to 'testing/gitolite/APKBUILD')
-rw-r--r-- | testing/gitolite/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/gitolite/APKBUILD b/testing/gitolite/APKBUILD new file mode 100644 index 0000000000..86059331ab --- /dev/null +++ b/testing/gitolite/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: +pkgname=gitolite +pkgver=2.1 +pkgrel=0 +pkgdesc="A 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" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="saveas-https://github.com/sitaramc/gitolite/tarball/v2.1/gitolite-2.1.tar.gz + configuration.patch" + +_builddir="$srcdir"/sitaramc-gitolite-871ed28 + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" +} + +package() { + cd "$_builddir" + mkdir -p "$pkgdir"/usr/bin \ + "$pkgdir"/etc/gitolite \ + "$pkgdir"/usr/share/gitolite/hooks \ + "$pkgdir"/usr/share/doc/gitolite + mv src/* "$pkgdir"/usr/bin/ + mv conf/* "$pkgdir"/etc/gitolite/ + mv hooks/* "$pkgdir"/usr/share/gitolite/hooks/ + mv doc/* "$pkgdir"/usr/share/doc/gitolite/ +} + +md5sums="33e0f6f384cf0596aed974fa563b50c3 gitolite-2.1.tar.gz +b4603bb37d3a746a1508bd7528464ba4 configuration.patch" |