The version isn't bumped in the code upstream yet
This commit is contained in:
Nemo 2021-02-12 13:02:47 +05:30
parent a986b76ee6
commit ba93600204
2 changed files with 27 additions and 24 deletions

View File

@ -1,16 +1,19 @@
pkgbase = karn pkgbase = karn
pkgdesc = Manage multiple Git identities with ease pkgdesc = Manage multiple Git identities with ease
pkgver = 0.0.4 pkgver = 0.0.5
pkgrel = 2 pkgrel = 1
url = https://github.com/prydonius/karn url = https://github.com/prydonius/karn
arch = x86_64 arch = x86_64
arch = i686 arch = i686
arch = arm
arch = armv6h
arch = armv7h
license = MIT license = MIT
makedepends = go makedepends = go
options = !strip options = !strip
options = !emptydirs options = !emptydirs
source = https://github.com/prydonius/karn/archive/v0.0.4.tar.gz source = https://github.com/prydonius/karn/archive/v0.0.5.tar.gz
sha256sums = 68d244558ef62cf1da2b87927a0a2fbf907247cdd770fc8c84bf72057195a6cb sha512sums = 23a33355ceefe4d1a76a31e551713b21f9054ea462a2a64c349b9bfb84f8698173df80c8b0d1a8a3c491d86df3d0130b8b91ce3aa74e491f9c5fa7b7d20e9e01
pkgname = karn pkgname = karn

View File

@ -1,36 +1,36 @@
# Maintainer: Nemo <archlinux [at] captnemo.in> # Maintainer: Nemo <archlinux [at] captnemo.in>
pkgname=karn pkgname=karn
pkgver=0.0.4 pkgver=0.0.5
pkgrel=2 pkgrel=1
pkgdesc="Manage multiple Git identities with ease" pkgdesc="Manage multiple Git identities with ease"
arch=('x86_64' 'i686') arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
url="https://github.com/prydonius/karn" url="https://github.com/prydonius/karn"
license=('MIT') license=('MIT')
makedepends=('go') makedepends=('go')
options=('!strip' '!emptydirs') options=('!strip' '!emptydirs')
source=("https://github.com/prydonius/karn/archive/v$pkgver.tar.gz") source=("$url/archive/v$pkgver.tar.gz")
sha256sums=('68d244558ef62cf1da2b87927a0a2fbf907247cdd770fc8c84bf72057195a6cb') sha512sums=('23a33355ceefe4d1a76a31e551713b21f9054ea462a2a64c349b9bfb84f8698173df80c8b0d1a8a3c491d86df3d0130b8b91ce3aa74e491f9c5fa7b7d20e9e01')
prepare(){
cd "$pkgname-$pkgver"
mkdir -p build/
}
build() { build() {
cd "$srcdir/$pkgname-$pkgver" cd "$pkgname-$pkgver"
export CGO_CPPFLAGS="${CPPFLAGS}"
rm -rf "$srcdir/go/src" export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
mkdir -p "$srcdir/go/src" export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
export GOPATH="$srcdir/go"
mv "$srcdir/$pkgname-$pkgver" "$srcdir/go/src/$pkgname"
cd "$srcdir/go/src/$pkgname/"
go get go get
go build -o build ./cmd/karn
go build cmd/karn/karn.go
} }
package() { package() {
install -DT "$srcdir/go/src/$pkgname/$pkgname" "$pkgdir/usr/bin/karn" cd "$pkgname-$pkgver"
install -DT build/$pkgname "$pkgdir/usr/bin/karn"
} }