diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-10-04 17:51:29 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-10-04 17:51:29 +0000 |
commit | 615ba2b4aa4fe28c5fd6357f4b97ed48b9b52e5e (patch) | |
tree | a45eebcd407777c4b1dbba873ac343b42d2ff13c /user/cloc/APKBUILD | |
parent | 92393a6f0b3dae968cde38a6b686e2304c4f8d10 (diff) | |
parent | 8c4e808ec735d7e5f8b71ac33c0a540223729bf8 (diff) | |
download | packages-615ba2b4aa4fe28c5fd6357f4b97ed48b9b52e5e.tar.gz packages-615ba2b4aa4fe28c5fd6357f4b97ed48b9b52e5e.tar.bz2 packages-615ba2b4aa4fe28c5fd6357f4b97ed48b9b52e5e.tar.xz packages-615ba2b4aa4fe28c5fd6357f4b97ed48b9b52e5e.zip |
Merge branch 'new.cloc' into 'master'
Package `cloc`
See merge request adelie/packages!348
Diffstat (limited to 'user/cloc/APKBUILD')
-rw-r--r-- | user/cloc/APKBUILD | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/user/cloc/APKBUILD b/user/cloc/APKBUILD new file mode 100644 index 000000000..ede81a9c5 --- /dev/null +++ b/user/cloc/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com> +pkgname=cloc +pkgver=1.84 +pkgrel=0 +pkgdesc="Perl utility for counting lines of code in various languages" +url="https://github.com/AlDanial/cloc" +arch="all" +license="GPL-2.0+" +depends="perl perl-regexp-common perl-algorithm-diff" +checkdepends="perl-parallel-forkmanager" +subpackages="$pkgname-doc" +source="https://github.com/AlDanial/cloc/releases/download/$pkgver/cloc-$pkgver.tar.gz" + +build() { + cd Unix + make DESTDIR="$pkgdir" doc +} + +check() { + cd Unix + make DESTDIR="$pkgdir" test-perl +} + +package() { + cd Unix + make DESTDIR="$pkgdir" install +} + +sha512sums="cfcc1854d7f3257bcd66f13b1053a856ae31acc35f94537e20cbb341ab256390bded1f00ff6b1ce2bc60a1a69379b6915d398297e2f878bc4eea190c59b22669 cloc-1.84.tar.gz" |