summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 332203557d78ec759aec7abc8ba4855ece19c476 (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=2
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=('0b805d53326f269e8fe21f709dc69947820fda1f291040e9225f93aef614daea')

build () {
    cd ${pkgname}-${pkgver}
    cargo build --release
}

package () {
    cd ${pkgname}-${pkgver}/target/release
    install -Dm755 ${pkgname} ${pkgdir}/usr/bin/${pkgname}
}