aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sloccount/APKBUILD
blob: 64c65e124b3526fc2dd89bbb54f6440c425bf627 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=sloccount
pkgver=2.26
pkgrel=0
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"
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() {
	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"