summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorDaniel M. Capella2015-10-02 14:49:21 -0400
committerDaniel M. Capella2015-10-02 14:49:21 -0400
commit9b8d5f82c76c29aded31ebd900ec42422422c9d8 (patch)
tree58a6aabc6523131bfc0db38e1e4e60714da3d317 /PKGBUILD
downloadaur-9b8d5f82c76c29aded31ebd900ec42422422c9d8.tar.gz
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0fd3e3817da
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Daniel M. Capella <polycitizen@gmail.com>
+# Contributor: Scott Lawrence <bytbox@gmail.com>
+
+pkgname=sloc
+pkgver=0.3.1
+pkgrel=1
+pkgdesc="Simply counts source lines of code"
+arch=('i686' 'x86_64')
+url='http://bytbox.net/hacks/sloc'
+license=('MIT')
+depends=('go')
+optdepends=('perl-datetime' 'perl-json' 'perl-switch' 'gnuplot')
+makedepends=(git)
+source=("sloc::git+http://git.bytbox.net/sloc/#tag=v$pkgver")
+sha256sums=('SKIP')
+
+build() {
+ cd sloc
+ ./gen-man.sh
+
+ cd sloc
+ go build -o sloc
+}
+
+package() {
+ cd sloc
+ install -D -m755 sloc/sloc "$pkgdir"/usr/bin/sloc
+ install -D -m755 reposloc "$pkgdir"/usr/bin/reposloc
+ install -D -m644 reposloc.1 "$pkgdir"/usr/share/man/man1/reposloc.1
+}
+
+# vim:set ts=2 sw=2 et: