summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3731fd0998967d6b093e7e2e17337bfb7731abc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Maintainer: Filip Weiss <minepkg+me@fiws.net>

pkgname=minepkg
pkgver=0.0.1
pkgrel=1
pkgdesc="Installs and manages Minecraft mods with ease"
arch=('x86_64')
url="https://github.com/fiws/minepkg"
license=('MIT')
groups=()
depends=()
makedepends=('go')
optdepends=('docker')
source=("https://github.com/fiws/$pkgname/archive/v$pkgver-beta.tar.gz")
sha1sums=('67c59d7f04555b22a08e0bf611a91822ea817c9b')

build() {
  cd "$srcdir/$pkgname-$pkgver-beta"
  go build -ldflags="-s -w" -o ./out/minepkg main.go
}

package() {
  cd "$srcdir/$pkgname-$pkgver-beta"
  install -Dm755 "out/minepkg" "$pkgdir/usr/bin/minepkg"
}