diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-08-14 11:12:38 +0200 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-08-14 12:46:41 +0000 |
commit | 7f8bb69034f76a9014a2574343366987f2ba756a (patch) | |
tree | be713c4e93365a7d8351ae883f3f99a508c59a2e /testing/cloc/APKBUILD | |
parent | 8eb537ab7f1ef8e526a8d037bee262a0f540f56b (diff) | |
download | aports-7f8bb69034f76a9014a2574343366987f2ba756a.tar.bz2 aports-7f8bb69034f76a9014a2574343366987f2ba756a.tar.xz |
testing/cloc: new aport
Diffstat (limited to 'testing/cloc/APKBUILD')
-rw-r--r-- | testing/cloc/APKBUILD | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/cloc/APKBUILD b/testing/cloc/APKBUILD new file mode 100644 index 0000000000..0198c157e8 --- /dev/null +++ b/testing/cloc/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +pkgname=cloc +pkgver=1.64 +pkgrel=0 +pkgdesc="Count Lines of Code" +url="http://cloc.sourceforge.net/" +arch="noarch" +license="GPL" +depends="perl" +depends_dev="" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.gz + perl522.patch" # See https://sourceforge.net/p/cloc/bugs/135/ + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + + local i= + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;; + esac + done +} + +build () { + make -C "$_builddir" || return 1 +} + +package() { + make DESTDIR="$pkgdir" -C "$_builddir" \ + install || return 1 +} + +md5sums="ef5bac179f64bb2af1a6d67c2b0f7194 cloc-1.64.tar.gz +3d43994945cc7304cdcb27614d7a11a3 perl522.patch" +sha256sums="309701142f54ee5b244307dec2d07848b71af9b9fee01437d3f7440193f975f0 cloc-1.64.tar.gz +5600b8b5a03add484079d8a22cd6f8ae80e29c44a8583e3f4302ad3730513036 perl522.patch" +sha512sums="2532c8f57a5d9b10a03fe8056708b79f7eb588831dec4b89ac85f354049cdf1e150a0a0c1add359831a1d89a0ed8ac56092ff31e54f4ccfb9491c21b50a960b6 cloc-1.64.tar.gz +3f4f421db0cfac693eab632dc143fe6ee70dd189164a93b2d2a919b0147923d6caa9dc1c553bffa9e8adb7b65b7765508306540ac4f11290013ef7617e966d7a perl522.patch" |