mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-25 09:41:35 +01:00
not making the directory first causes the install script to fail and install nothing closes #13435
34 lines
878 B
Plaintext
34 lines
878 B
Plaintext
# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
|
|
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
|
|
pkgname=sloccount
|
|
pkgver=2.26
|
|
pkgrel=3
|
|
pkgdesc="Tool for counting physical Source Lines of Code (SLOC)"
|
|
url="https://dwheeler.com/sloccount"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
makedepends="flex perl"
|
|
subpackages="$pkgname-doc"
|
|
source="https://dwheeler.com/sloccount/sloccount-$pkgver.tar.gz"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
sed -i -e '/^DOC_DIR/ { s/-$(RPM_VERSION)//g }' makefile
|
|
}
|
|
|
|
check() {
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/usr/bin
|
|
make PREFIX=/usr \
|
|
INSTALL_DIR="$pkgdir/usr/bin" \
|
|
DOC_DIR="$pkgdir/usr/share/doc/$pkgname" \
|
|
MAN_DIR="$pkgdir/usr/share/man" \
|
|
install
|
|
}
|
|
sha512sums="
|
|
ed6ab315a56dbdc86c654b94e790c9ea9e2dcad0db26b63c0973c33eb7fa634b4ade0a1f3c6ccfd5172ea95f648c1dd3b0ae2575b0aa44b3fec708c24a6aca54 sloccount-2.26.tar.gz
|
|
"
|