mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-15 04:43:01 +01:00
32 lines
1.0 KiB
Plaintext
32 lines
1.0 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
pkgname=cloc
|
|
pkgver=1.72
|
|
pkgrel=0
|
|
pkgdesc="Count lines of code"
|
|
url="https://github.com/AlDanial/cloc"
|
|
arch="noarch"
|
|
license="GPL2"
|
|
depends="perl perl-algorithm-diff perl-regexp-common"
|
|
makedepends=""
|
|
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="d0e8e19a03f198fc86df2f3d73e788ec cloc-1.72.tar.gz"
|
|
sha256sums="2d2c57478b6c8b77d90d8b2aa278a3bd1f18251f5cf3cfeb017db2c27ad86af2 cloc-1.72.tar.gz"
|
|
sha512sums="599ad5664eeb9ca4918e83e2cce5723c2546ad4a160f4a20f5537675c478d859f2f0bac03b271926df477943eb047a4711511a198a3ddc6a20dbc76c868d46e9 cloc-1.72.tar.gz"
|