Skip to content

Commit

Permalink
Adds an Archlinux PKGBUILD (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
chabad360 authored and TekWizely committed Jan 22, 2020
1 parent 0d33f74 commit 8fefa67
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions deployments/aur/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: Mendel Greenberg <mendel at chabad360 dot com>

pkgname=run-git
_pkgname=run
pkgver=v0.7.0.r8.g0d33f74
pkgrel=1
pkgdesc="Easily manage and invoke small scripts and wrappers"
arch=('i686' 'x86_64')
url="https://github.com/TekWizely/run"
license=('MIT')
provides=('run')
makedepends=(
'go'
'git'
)
source=("git+https://github.com/TekWizely/run.git")
sha256sums=('SKIP')

pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --tags --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build(){
cd "${srcdir}/${_pkgname}"
export GOCACHE="${srcdir}/cache"
export GOPATH="${srcdir}/gopath"
go mod vendor
go build \
-mod=vendor \
-trimpath \
-ldflags "-extldflags $LDFLAGS" .
}

package(){
cd "${srcdir}/${_pkgname}"
install -Dm755 run "${pkgdir}/usr/bin/run"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

0 comments on commit 8fefa67

Please sign in to comment.