blob: b91a1415dd32e9a14837632ca80d44271886ba24 (
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
|
# Maintainer: Your Name <lemon.xah@gmail.com>
pkgname=csloc
_pkgname=csloc
pkgver=0.1.2.r0.g90232f1
pkgrel=1
pkgdesc="Counts lines of code based on file extension. Can specify substantial line of code by char count."
arch=('x86_64' 'i686')
url="https://github.com/lemonxah/csloc"
license=('mit')
makedepends=('rust' 'cargo' 'cmake' 'git')
provides=("csloc")
conflicts=("csloc")
source=("$_pkgname::git+https://github.com/lemonxah/csloc.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$_pkgname"
env CARGO_INCREMENTAL=0 cargo build --release --locked
}
package_csloc() {
cd "$_pkgname"
install -D -m 755 "target/release/csloc" "$pkgdir/usr/bin/csloc"
}
|