Add Alpine APK packaging and update CI for versioned releases
This commit is contained in:
26
packaging/alpine/APKBUILD
Normal file
26
packaging/alpine/APKBUILD
Normal file
@@ -0,0 +1,26 @@
|
||||
# Maintainer: Elias Kohout <elias@kohout.eu>
|
||||
pkgname=axolotl
|
||||
pkgver=0.1.0
|
||||
pkgrel=0
|
||||
pkgdesc="CLI-native issue tracker using SQLite"
|
||||
url="https://g.eliaskohout.de/eliaskohout/axolotl"
|
||||
arch="x86_64 aarch64"
|
||||
license="MIT"
|
||||
depends=""
|
||||
makedepends="go"
|
||||
source="$pkgname-$pkgver.tar.gz::https://g.eliaskohout.de/eliaskohout/axolotl/archive/$pkgver.tar.gz"
|
||||
|
||||
export GOTOOLCHAIN=auto
|
||||
|
||||
build() {
|
||||
cd "$srcdir/src"
|
||||
go build -ldflags="-s -w" -trimpath -o "$pkgname" .
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm755 "$srcdir/src/$pkgname" "$pkgdir/usr/bin/$pkgname"
|
||||
|
||||
ln -s "$pkgname" "$pkgdir/usr/bin/ax"
|
||||
}
|
||||
|
||||
sha512sums=""
|
||||
Reference in New Issue
Block a user