diff options
author | Alexander F. Rødseth | 2019-10-09 14:14:22 +0200 |
---|---|---|
committer | Alexander F. Rødseth | 2019-10-09 14:14:22 +0200 |
commit | bf705cc3356b2678417cd3775ee5bbf5ae4e81a5 (patch) | |
tree | bd52e65a9595283af73389ec8531056797ddb0f0 | |
download | aur-bf705cc3356b2678417cd3775ee5bbf5ae4e81a5.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c46140aadf44 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +# Generated by mksrcinfo v8 +# Wed Oct 9 12:13:25 UTC 2019 +pkgbase = o + pkgdesc = Small, fast and very limited text editor + pkgver = 2.0.0 + pkgrel = 1 + url = https://github.com/xyproto/o + arch = x86_64 + license = MIT + makedepends = git + makedepends = gcc-go + source = git+https://github.com/xyproto/o#tag=2.0.0 + sha256sums = SKIP + +pkgname = o + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c5dbaa79e314 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Alexander F. Rødseth <xyproto@archlinux.org> + +pkgname=o +pkgver=2.0.0 +pkgrel=1 +pkgdesc='Small, fast and very limited text editor' +arch=(x86_64) +url='https://github.com/xyproto/o' +license=(MIT) +makedepends=(git gcc-go) +source=("git+$url#tag=$pkgver") +sha256sums=('SKIP') + +build() { + cd "$pkgname" + go build -buildmode=pie -gccgoflags="-s -w $LDFLAGS" +} + +package() { + install -Dm755 $pkgname/o "$pkgdir/usr/bin/o" + install -Dm644 $pkgname/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +# vim: ts=2 sw=2 et: |