summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD42
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..40506520a11
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+# Generated by mksrcinfo v8
+# Wed Sep 21 04:58:59 UTC 2016
+pkgbase = mk-git
+ pkgdesc = A reboot of the Plan 9 mk command.
+ pkgver = r49.73d1b31
+ pkgrel = 1
+ url = https://github.com/dcjones/mk
+ arch = i686
+ arch = x86_64
+ makedepends = git
+ makedepends = go
+
+pkgname = mk-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c3b5e6430ca
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=mk-git
+pkgver=r49.73d1b31
+pkgrel=1
+epoch=
+pkgdesc="A reboot of the Plan 9 mk command."
+arch=('i686' 'x86_64')
+url="https://github.com/dcjones/mk"
+license=('')
+categories=()
+groups=()
+depends=('')
+makedepends=('git' 'go')
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=('')
+replaces=()
+backup=()
+options=()
+changelog=
+install=
+noextract=()
+_gourl=github.com/dcjones/mk
+
+pkgver() {
+ GOPATH="$srcdir" go get -d ${_gourl}
+ cd "$srcdir/src/${_gourl}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ GOPATH="$srcdir" go get -fix -v ${_gourl}
+}
+
+package() {
+ cd "$srcdir"
+ install -Dm755 bin/mk "$pkgdir/usr/bin/mk"
+ install -Dm644 src/${_gourl}/README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md
+ install -Dm644 src/${_gourl}/LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
+}
+