diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 29 insertions, 16 deletions
@@ -1,28 +1,41 @@ -# Maintainer: Caleb Fontenot <foley2431 at gmail dot com> +# Maintainer: Sefa Eyeoglu <contact@scrumplex.net> +# Contributor: Caleb Fontenot <foley2431 at gmail dot com> + pkgname=packwiz-git -pkgver=f2c6b89 -url="https://github.com/comp500/packwiz" +pkgver=r211.e71b63e pkgrel=1 pkgdesc="A command line tool for creating minecraft modpacks." -arch=('any') -license=('MIT') -depends=('go') -source=("git+https://github.com/comp500/packwiz.git") -md5sums=('SKIP') +arch=("x86_64") +url="https://packwiz.infra.link/" +license=("custom:MIT") +depends=("glibc") +makedepends=("git" "go") +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=("${pkgname%-git}::git+https://github.com/packwiz/packwiz.git") +md5sums=("SKIP") pkgver() { - cd "$srcdir/packwiz" - #git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' - git rev-parse --short HEAD + cd "${pkgname%-git}" + + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { - cd "$srcdir/packwiz" - go build + cd "${pkgname%-git}" + + go build \ + -trimpath \ + -buildmode=pie \ + -mod=readonly \ + -modcacherw \ + -ldflags "-linkmode external -extldflags \"${LDFLAGS}\"" \ + . } package() { - cd "$srcdir/packwiz" - install -Dm755 packwiz "${pkgdir}/usr/bin/packwiz" + cd "${pkgname%-git}" - } + install -Dm755 packwiz "$pkgdir/usr/bin/packwiz" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |