diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-07-26 16:10:13 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2016-07-26 16:11:11 +0200 |
commit | 35f62ed4391b512896f36dee2393ba9b710d4dc4 (patch) | |
tree | 7e63691f8d6ba8e9a6c4b3f6825b5da45c8b440e /community/cloc | |
parent | cab4a2f6d92d7dc948451cf7c5bb7d39f278ea7e (diff) | |
download | aports-35f62ed4391b512896f36dee2393ba9b710d4dc4.tar.bz2 aports-35f62ed4391b512896f36dee2393ba9b710d4dc4.tar.xz |
community/cloc: moved from testing/
Diffstat (limited to 'community/cloc')
-rw-r--r-- | community/cloc/APKBUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/community/cloc/APKBUILD b/community/cloc/APKBUILD new file mode 100644 index 0000000000..7fa84cd7bf --- /dev/null +++ b/community/cloc/APKBUILD @@ -0,0 +1,33 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net> +pkgname=cloc +pkgver=1.70 +pkgrel=1 +pkgdesc="Count lines of code" +url="https://github.com/AlDanial/cloc" +arch="noarch" +license="GPL2" +depends="perl perl-algorithm-diff perl-regexp-common" +depends_dev="" +makedepends="" +install="" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/$pkgname/archive/v$pkgver.tar.gz" + +builddir="$srcdir"/$pkgname-$pkgver/Unix +build () { + make -C "$builddir" || return 1 +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + + mkdir -p "$pkgdir"/usr/share/doc/$pkgname/ + install -Dm644 NEWS README AUTHORS \ + "$pkgdir"/usr/share/doc/$pkgname/ || return 1 +} + +md5sums="74e159c9957a6fba3e93b1501008f0fa cloc-1.70.tar.gz" +sha256sums="fd6e2bf95836578d8e94f2a85ce67f2e0cdf378b8200a02f8ee2a101f45984e9 cloc-1.70.tar.gz" +sha512sums="dd9797a0601e82eed2a04318427db92d7e7ec191e2c9a1ca90add6b33ee253afaa7d7109485edd55beb23db3cdfc5fa67457a4b792c3bda1c2ca79a5110b1359 cloc-1.70.tar.gz" |