diff options
author | Abhinav Gupta | 2021-09-16 20:58:36 -0700 |
---|---|---|
committer | Abhinav Gupta | 2021-10-21 16:51:04 -0700 |
commit | f2d9e13734ee34dd16e946d536351a8fb51c3d2a (patch) | |
tree | 7192cd7158a9c69f3735e5edbc5743c0e535a730 | |
download | aur-f2d9e13734ee34dd16e946d536351a8fb51c3d2a.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 31 |
3 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..97c10c06cdf5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = gitprompt + pkgdesc = Informative git prompt for zsh and bash + pkgver = 0.8.0 + pkgrel = 2 + url = https://github.com/abhinav/gitprompt + arch = x86_64 + arch = i686 + arch = armv7h + arch = aarch64 + license = MIT + makedepends = go + provides = gitprompt + source = gitprompt-0.8.0.tar.gz::https://github.com/abhinav/gitprompt/archive/v0.8.0.tar.gz + sha256sums = 7213178f72e1a948c152992534e7167c99c581382b56b1cfcbbf7bb9ac174ab1 + +pkgname = gitprompt diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..575239f12f21 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/*.tar.gz +/*.zst +/pkg +/src +/gitprompt diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a1ec8772edcb --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Abhinav Gupta <mail@abhinavg.net> +pkgname=gitprompt +pkgver=0.8.0 +pkgrel=2 +pkgdesc='Informative git prompt for zsh and bash' +arch=('x86_64' 'i686' 'armv7h' 'aarch64') +url="https://github.com/abhinav/gitprompt" +license=('MIT') +makedepends=('go') +provides=("$pkgname") +source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") +sha256sums=('7213178f72e1a948c152992534e7167c99c581382b56b1cfcbbf7bb9ac174ab1') + +_gopackagepath=github.com/abhinav/gitprompt/cmd/gitprompt + +build() { + cd "$pkgname-$pkgver" + export CGO_ENABLED=0 + export GOFLAGS="-buildmode=pie -trimpath -modcacherw" + go build -o "$pkgname" "$_gopackagepath" +} + +check() { + cd "$pkgname-$pkgver" + "./$pkgname" +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname" +} |