diff options
Diffstat (limited to 'testing/gitstats/APKBUILD')
-rw-r--r-- | testing/gitstats/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/gitstats/APKBUILD b/testing/gitstats/APKBUILD new file mode 100644 index 0000000000..5acd50a4fc --- /dev/null +++ b/testing/gitstats/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=gitstats +git=ad7efbb9399e60cee6cb217c6b47e604174a8093 +pkgver=0 +pkgrel=0.${git:0:6} +pkgdesc="Git history statistics generator" +url="http://gitstats.sourceforge.net/" +arch="noarch" +license="GPL2+" +depends="python gnuplot git" +depends_dev="" +makedepends="" +install="" +subpackages="" +source="http://repo.or.cz/w/gitstats.git/snapshot/$git.tar.gz + output.patch" + +_builddir="$srcdir"/$pkgname +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" + install -m755 -D "$_builddir"/$pkgname \ + "$pkgdir"/usr/sbin/$pkgname || return 1 + + for _file in gitstats.css sortable.js *.gif; do + install -Dm644 "$_builddir"/$_file \ + "$pkgdir"/usr/share/$pkgname/$_file || return 1 + done + +} + +md5sums="a5ae0f3c25aacea3b8f4656411791f07 ad7efbb9399e60cee6cb217c6b47e604174a8093.tar.gz +fa02fcd794241fdb9748f98403b8cdf2 output.patch" |