aboutsummaryrefslogtreecommitdiffstats
path: root/community/cloc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/cloc/APKBUILD')
-rw-r--r--community/cloc/APKBUILD33
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"