diff options
author | Jelle van der Waa | 2019-07-08 16:42:13 +0200 |
---|---|---|
committer | Jelle van der Waa | 2019-07-08 16:42:13 +0200 |
commit | 2064ce3e71273a7aafd5f9da04118546bc3aae6f (patch) | |
tree | 89a5ce9b42d272863ea2f8e5b7220165ae06fa3d | |
download | aur-2064ce3e71273a7aafd5f9da04118546bc3aae6f.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3808db44d260 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = git-chglog + pkgdesc = git CHANGELOG generator + pkgver = 0.8.0 + pkgrel = 1 + url = https://github.com/git-chglog/git-chglog + arch = x86_64 + license = MIT + makedepends = go-pie + makedepends = dep + depends = git + source = git-chglog-0.8.0::https://github.com/git-chglog/git-chglog/archive/0.8.0.tar.gz + sha512sums = 50a9e36f341cf623f8d59a5af65ef58d59db71ed8337fe148df93b0821b08ba341423df64c62182db7d4875811483f67c4637351ebda7ab2513c97f00e3a2434 + +pkgname = git-chglog + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7a926dd60a70 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Jelle van der Waa <jelle@archlinux.org> + +pkgname=git-chglog +pkgver=0.8.0 +pkgrel=1 +pkgdesc='git CHANGELOG generator' +url="https://github.com/git-chglog/git-chglog" +arch=(x86_64) +license=(MIT) +depends=(git) +makedepends=(go-pie dep) +source=($pkgname-$pkgver::https://github.com/git-chglog/git-chglog/archive/0.8.0.tar.gz) +sha512sums=('50a9e36f341cf623f8d59a5af65ef58d59db71ed8337fe148df93b0821b08ba341423df64c62182db7d4875811483f67c4637351ebda7ab2513c97f00e3a2434') + +prepare(){ + mkdir -p gopath/src/github.com/$pkgname + ln -rTsf $pkgname-$pkgver gopath/src/github.com/$pkgname/$pkgname + export GOPATH="$srcdir"/gopath +} + +build() { + export GOPATH="$srcdir/gopath" + cd gopath/src/github.com/$pkgname/$pkgname + go install \ + -gcflags "all=-trimpath=$GOPATH" \ + -asmflags "all=-trimpath=$GOPATH" \ + -ldflags "-extldflags ${LDFLAGS}" \ + -v ./... +} + +check() { + export GOPATH="$srcdir"/gopath + cd gopath/src/github.com/$pkgname/$pkgname + go test ./... +} + +package() { + export GOPATH="$srcdir/gopath" + install -Dm755 $GOPATH/bin/$pkgname "$pkgdir/usr/bin/$pkgname" + install -Dm755 "${pkgname}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |