blob: 7e2a103d694273fa1003943855f286548c5c2a15 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Maintainer: SY.Zhang <lastavengers@archlinuxcn.org>
pkgname=loc
pkgver=0.3.2
pkgrel=1
pkgdesc='Count lines of code quickly'
arch=('x86_64' 'i386')
url='https://github.com/cgag/loc'
license=('MIT')
makedepends=('cargo-nightly' 'git')
source=("https://github.com/cgag/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('SKIP')
build () {
cd ${pkgname}-${pkgver}
cargo build --release
}
package () {
cd ${pkgname}-${pkgver}/target/release
install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
}
|