diff options
author | Christian Schuetz | 2017-11-18 20:31:29 -0600 |
---|---|---|
committer | Christian Schuetz | 2017-11-18 20:31:29 -0600 |
commit | 9ee79f24c0ff9a235e96096dc58059717a50d553 (patch) | |
tree | 8432a6ccb63cb922acd0678a8b4acb588adb87a4 /PKGBUILD | |
download | aur-btops-git.tar.gz |
Initial submission of btops-git
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b585c5f4ff7f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Christian Schuetz <cmschuetz12 at gmail dat com> + +pkgname=btops-git +_pkgname=btops +pkgver=0.1.0.r0.g7ecfa08 +pkgrel=1 +pkgdesc="bspwm desktop management" +arch=('x86_64' 'i686') +url="https://github.com/cmschuetz/btops" +license=('MIT') +makedepends=('go' 'git') +options=('!strip' '!emptydirs') +provides=("btops") +source=("git+https://github.com/cmschuetz/btops.git") +sha256sums=('SKIP') +_gourl='github.com/cmschuetz/btops' + +pkgver() { + cd "${_pkgname}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +prepare() { + rm -rf "${srcdir}/src" + mkdir -p "${srcdir}/src/github.com/cmschuetz" + ln -sf "${srcdir}/${_pkgname}" "${srcdir}/src/github.com/cmschuetz/btops" +} + +build() { + export GOPATH="$srcdir" + go get ${_gourl} +} + +package() { + cd "${_pkgname}" + install -Dm755 "../bin/${_pkgname}" "${pkgdir}/usr/bin/${_pkgname}" + install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE" +} |