summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0c7013bf6b6fdcb1c6ae3e247f2675c67e5e31d9 (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 mrAppleXZ <mr.applexz@gmail.com> 

pkgname=mkmod-git
pkgrel=1
pkgver=1.0.r0.g6b8bde2
pkgdesc="A shell script to clone & build the Minecraft mod that uses the Gradle build system."
arch=('any')
url='https://github.com/PearXTeam/mkmod'
license=('GPL3')
makedepends=('git')
optdepends=("gradle: in case of the gradlew file doesn't exist")
source=("$pkgname::git+git://github.com/PearXTeam/mkmod.git#branch=master")
sha256sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "${srcdir}/${pkgname}"

  install -D -m755 "mkmod.sh" "${pkgdir}/usr/bin/mkmod"
  install -D -m644 "LICENSE" "${pkgdir}/usr/share/licenses/mkmod"
}