summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraksr2018-06-01 10:17:27 +0200
committeraksr2018-06-01 10:17:27 +0200
commit122fb4c42175e19e89f1e185e53b4eb7b2332826 (patch)
tree81a5acb5c76af7349c98609c9d944f40867f3a8a
downloadaur-122fb4c42175e19e89f1e185e53b4eb7b2332826.tar.gz
Start.
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD46
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..8307361a860f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+# Generated by mksrcinfo v8
+# Fri Jun 1 08:17:27 UTC 2018
+pkgbase = a-git
+ pkgdesc = A text editor inspired by the Sam and Acme text editors for the Plan 9 operating system.
+ pkgver = r230.ab0e0e4
+ pkgrel = 1
+ url = https://github.com/as/a
+ arch = i686
+ arch = x86_64
+ license = BSD 3-Clause
+ makedepends = git
+ makedepends = go
+
+pkgname = a-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..b40ad64579bb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: aksr <aksr at t-com dot me>
+pkgname=a-git
+pkgver=r230.ab0e0e4
+pkgrel=1
+epoch=
+pkgdesc="A text editor inspired by the Sam and Acme text editors for the Plan 9 operating system."
+arch=('i686' 'x86_64')
+url="https://github.com/as/a"
+license=('BSD 3-Clause')
+categories=()
+groups=()
+depends=()
+makedepends=('git' 'go')
+optdepends=()
+checkdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+changelog=
+install=
+noextract=()
+_gourl=github.com/as/a
+
+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}
+}
+
+check() {
+ GOPATH="$srcdir" go test -v -x ${_gourl}
+}
+
+package() {
+ cd "$srcdir"
+ install -Dm755 bin/a "$pkgdir/usr/bin/a"
+ install -Dm644 src/${_gourl}/README.md $pkgdir/usr/share/doc/${pkgname%-*}/README.md
+ install -Dm644 src/${_gourl}/LICENSE $pkgdir/usr/share/licenses/${pkgname%-*}/LICENSE
+}
+