diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0ee3a61d343a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = i3refgen + pkgdesc = Reads your i3 configuration file and generates a HTML file with the keybindings to print out and put near your screen. + pkgver = 1.1 + pkgrel = 1 + url = https://github.com/ronthecookie/i3refgen + arch = any + license = MIT + makedepends = go-pie + makedepends = dep + source = i3refgen-1.1.tar.gz::https://github.com/RONTheCookie/i3refgen/archive/v1.1.tar.gz + md5sums = 0a2e5bdf6cc7ab61815b5b541aec9988 + +pkgname = i3refgen + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8cfc89b153e9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=i3refgen +pkgver=1.1 +pkgrel=1 +pkgdesc="Reads your i3 configuration file and generates a HTML file with the keybindings to print out and put near your screen." +arch=('x86_64') +url="https://github.com/ronthecookie/i3refgen" +license=('MIT') +makedepends=('go-pie' 'dep') +source=("$pkgname-$pkgver.tar.gz::https://github.com/RONTheCookie/$pkgname/archive/v$pkgver.tar.gz") +md5sums=('0a2e5bdf6cc7ab61815b5b541aec9988') + +prepare(){ + mkdir -p gopath/src/github.com/ronthecookie + ln -rTsf "${pkgname}-${pkgver}" gopath/src/github.com/ronthecookie/$pkgname + + cd "gopath/src/github.com/ronthecookie/$pkgname" + export GOPATH="$srcdir/gopath" + dep ensure +} + +build() { + export GOPATH="$srcdir/gopath" + export GOFLAGS="-ldflags=-s -ldflags=-w -gcflags=all=-trimpath=${GOPATH} -asmflags=all=-trimpath=${GOPATH}" + cd "$GOPATH/src/github.com/ronthecookie/$pkgname" + go install -v ./... +} + +package() { + install -Dm755 "gopath/bin/$pkgname" "$pkgdir/usr/bin/$pkgname" + install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +}
\ No newline at end of file |