mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-28 09:51:46 +02:00
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
pkgname=cloc
|
|
pkgver=1.80
|
|
pkgrel=0
|
|
pkgdesc="Count lines of code"
|
|
url="https://github.com/AlDanial/cloc"
|
|
arch="noarch"
|
|
license="GPL-2.0-or-later Artistic-2.0"
|
|
depends="perl perl-algorithm-diff perl-regexp-common
|
|
perl-parallel-forkmanager"
|
|
makedepends=""
|
|
subpackages="$pkgname-doc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/AlDanial/cloc/archive/$pkgver.tar.gz
|
|
disable-git-tests.patch"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
make -C "$builddir"/Unix
|
|
}
|
|
|
|
check() {
|
|
make -C "$builddir"/Unix test
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"/Unix
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
|
|
install -Dm644 NEWS README AUTHORS \
|
|
"$pkgdir"/usr/share/doc/$pkgname/
|
|
}
|
|
|
|
sha512sums="93b657363d39d20e5cd257a3f852adb2715c0f96db6cb3dbc89d93a525aabe98d1779efc4972adfff444ef1bdee96509ac5aa54799fc16c439750669c1a0edc9 cloc-1.80.tar.gz
|
|
57c645db88bd83a06c32a38311b5f5a8cb0b86af454f20c7f4ce4311cc87932f8a61de381d5ca9f7189271034b487f2cb35f1d8568674f772d2969fb2e4e9cac disable-git-tests.patch"
|