blob: 5db1774520ca81e40953f5ac515560c11c250630 (
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
31
32
33
34
35
36
37
38
|
# Maintainer: Mike Swanson <mikeonthecomputer@gmail.com>
pkgname=loccount
pkgver=2.16
pkgrel=1
pkgdesc="Count source lines of code in a project."
arch=('x86_64')
url="http://www.catb.org/esr/$pkgname/"
license=('BSD')
makedepends=('asciidoctor' 'go')
source=("https://gitlab.com/esr/$pkgname/-/archive/$pkgver/$pkgname-$pkgver.tar.gz")
b2sums=('53ad3a6b628b2540d36e3addbf27a0d80b02721989a2f1ef894cb164d3194edf9d5a04e44135efad3474ace39790a8751451dab278da564e6addab5e13d7a4a6')
prepare() {
cd "$pkgname-$pkgver"
for patch in ../*.patch; do
if [ ! -f "$patch" ]; then
break;
else
patch -p1 -i "$patch"
fi
done
}
build() {
cd "$pkgname-$pkgver"
make loccount loccount.1
}
package() {
cd "$pkgname-$pkgver"
install -D "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|