Added PKGBUILD & .SRCINFO

main
Jef Roosens 2022-05-23 20:45:06 +02:00
commit b102b5122a
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 54 additions and 0 deletions

13
.SRCINFO 100644
View File

@ -0,0 +1,13 @@
pkgbase = packwiz-git
pkgdesc = packwiz is a command line tool for creating Minecraft modpacks.
pkgver = r211.e71b63e
pkgrel = 1
url = https://github.com/packwiz/packwiz
arch = x86_64
license = MIT
makedepends = go
depends = glibc
source = packwiz-git::git+https://github.com/packwiz/packwiz#branch=master
md5sums = SKIP
pkgname = packwiz-git

5
.gitignore vendored 100644
View File

@ -0,0 +1,5 @@
*
!.gitignore
!PKGBUILD
!.SRCINFO

36
PKGBUILD 100644
View File

@ -0,0 +1,36 @@
# 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')
makedepends=('go')
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}"
go build -ldflags "-s -w"
}
package() {
install -Dm755 "${pkgname}/packwiz" "${pkgdir}/usr/bin/packwiz"
}