summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5b327a8ab856e8f0074b85197b1b4e3406de173e (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
26
27
# Maintainer: MadTux <andreasgwilt@gmail.com>

pkgname=minetest-lott-git
pkgver=1.1.0.r79.ge41f502
pkgrel=1
pkgdesc="A Lord of the Rings-based game for the Minetest engine."
arch=('any')
url="https://minetest-lotr.github.io/"
license=('LGPL2')
depends=('minetest')
provides=('minetest-lott')
conflicts=('minetest-lott')

makedepends=('git')
source=("$pkgname::git://github.com/minetest-LOTR/Lord-of-the-Test.git")
md5sums=('SKIP')

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

package() {
  cd "$srcdir/$pkgname"
  mkdir -p "$pkgdir/usr/share/minetest/games/Lord-of-the-Test"
  cp -r * "$pkgdir/usr/share/minetest/games/Lord-of-the-Test"
}