diff options
Diffstat (limited to 'PKGBUILD-v2')
-rw-r--r-- | PKGBUILD-v2 | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/PKGBUILD-v2 b/PKGBUILD-v2 new file mode 100644 index 000000000000..faa65a9d8ec7 --- /dev/null +++ b/PKGBUILD-v2 @@ -0,0 +1,53 @@ +# Maintainer: ChacaS0 <chk-chaca@gmail.com> + +pkgname=tempest +pkgver=0.1.1 +pkgrel=1 +pkgdesc="TEMPest is a CLI tool to help manage temporary content without much +effort" +arch=('x86_64' 'i686') +url="https://chacas0.github.io/tempest/" +license=('MIT') +depends=('git' 'go') +makedepends=('dep') +options=('!strip' '!emptydirs') +#source=("https://github.com/ChacaS0/tempest/archive/v$pkgver.tar.gz") +sha256sums=('b08305a9b82f39e71d5f00884aeb4086ff8c8bf29c085fd320572092e55444f1') +__gourl=github.com/ChacaS0/tempest + + +prepare() { + # GOROOT + export GOROOT=/usr/lib/go + + # GOPATH + if [[ -z "${GOPATH}" ]]; then + export GOPATH="$HOME/gocode" + fi + + # GOBIN + if [[ -z "${GOBIN}" ]]; then + export GOBIN="$GOPATH/bin" + fi + +} + +build() { + #cd "$pkgname-$pkgver" + # + #go build + go get -u -v -t "$__gourl" +} + +package() { + # cd "$pkgname-$pkgver" + + # install -Dm755 "$pkgname-$pkgver" "$pkgdir/usr/bin/$pkgname" + # install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + if ! tempest > /dev/null 2>&1; then + ln -s $GOBIN/tempest /usr/bin/tempest + chmod +x /usr/bin/tempest + fi + + echo "TEMPest should be now accessible" +} |