diff options
author | lonkaars <l.leblansch@gmail.com> | 2020-11-03 11:45:17 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2020-11-03 11:45:17 +0100 |
commit | 9360968a2a5c0429bc8524bc8207ee25807f3d7d (patch) | |
tree | 17c2bd60f02e7022d816ea51ebc34787ad67d4dc |
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..4fb53e5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = go-serversdat-git + pkgdesc = Minecraft servers.dat tool + pkgver = 1.0.0 + pkgrel = 1 + epoch = 1 + url = https://github.com/Jake-E/go-serversdat + arch = any + license = MIT + makedepends = git + makedepends = go + provides = serversdat + conflicts = serversdat + source = git+https://github.com/Jake-E/go-serversdat + sha256sums = SKIP + +pkgname = go-serversdat-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..44bb51c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maitainer: Loek Le Blansch <l.leblansch@gmail.com> + +pkgname=go-serversdat-git +pkgver=1.0.0 +pkgrel=1 +epoch=1 +pkgdesc="Minecraft servers.dat tool" +arch=('any') +makedepends=('git' 'go') +url="https://github.com/Jake-E/go-serversdat" +license=('MIT') +source=(git+https://github.com/Jake-E/go-serversdat) +sha256sums=('SKIP') +provides=('serversdat') +conflicts=('serversdat') + +pkgver() { + cd ${pkgname%-git} + git describe --tags | sed "s+-+.r+" | tr - . +} + +prepare() { + msg2 'Installing dependencies...' + go get github.com/jedib0t/go-pretty/table github.com/seebs/nbt +} + +build() { + cd ${pkgname%-git} + + msg2 'Building...' + go build -o serversdat . +} + +package() { + cd ${pkgname%-git} + + msg2 'Installing executables...' + install -Dm 755 serversdat -t "$pkgdir"/usr/bin + + msg2 'Cleaning up pkgdir...' + find "$pkgdir" -type d -name .git -exec rm -r '{}' + +} |