blob: b585c5f4ff7f3eb6846d42748791a9fcc2af9ea8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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"
}
|