2022-05-23 20:45:06 +02:00
|
|
|
# Maintainer: Jef Roosens
|
|
|
|
|
|
|
|
pkgbase='packwiz-git'
|
|
|
|
pkgname='packwiz-git'
|
|
|
|
pkgver=r211.e71b63e
|
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='packwiz is a command line tool for creating Minecraft modpacks.'
|
|
|
|
arch=('x86_64')
|
|
|
|
|
|
|
|
url='https://github.com/packwiz/packwiz'
|
|
|
|
license=('MIT')
|
|
|
|
|
|
|
|
depends=('glibc')
|
2022-05-23 20:49:30 +02:00
|
|
|
makedepends=('git' 'go')
|
2022-05-23 20:45:06 +02:00
|
|
|
|
|
|
|
source=("${pkgname}::git+https://github.com/packwiz/packwiz#branch=master")
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "${pkgname}"
|
|
|
|
|
|
|
|
commit_count="$(git rev-list --count HEAD)"
|
|
|
|
commit="$(git rev-parse --short HEAD)"
|
|
|
|
|
|
|
|
echo "r${commit_count}.${commit}"
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "${pkgname}"
|
|
|
|
|
2022-05-23 20:49:30 +02:00
|
|
|
go build -ldflags '-s -w'
|
2022-05-23 20:45:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2022-05-23 20:49:30 +02:00
|
|
|
cd "${pkgname}"
|
|
|
|
|
|
|
|
install -Dm755 'packwiz' "${pkgdir}/usr/bin/packwiz"
|
|
|
|
|
|
|
|
./packwiz completion bash | install -Dm644 '/dev/stdin' "${pkgdir}/usr/share/bash-completion/completions/packwiz"
|
|
|
|
./packwiz completion zsh | install -Dm644 '/dev/stdin' "${pkgdir}/usr/share/zsh/site-functions/_packwiz"
|
|
|
|
./packwiz completion fish | install -Dm644 '/dev/stdin' "${pkgdir}/usr/share/fish/vendor_completions.d/packwiz.fish"
|
2022-05-23 20:45:06 +02:00
|
|
|
}
|