summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 654e6dede8dee6c6852056382cce335dc84aa143 (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
28
29
30
31
# Maintainer: Otto Sabart <seberm@seberm.com>

pkgname=minetest-mod-pipeworks-git
_gitname=${pkgname%-git*}
pkgver=833.5aa0501872c6
pkgrel=1
pkgdesc="Mob Framework Mod (former animals mod) provides a framework for creating mobs in Minetest"
arch=('any')
url="https://forum.minetest.net/viewtopic.php?id=2155"
license=('WTFPL')
depends=('minetest-common')
optdepends=('mesecons-git')
makedepends=()
provides=("$_gitname")
conflicts=()
source=("$_gitname::git+https://github.com/mt-mods/pipeworks.git")
sha512sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  install -d "${pkgdir}/usr/share/minetest/mods"
  cd "${srcdir}/$_gitname"
  rm -rf ".git"
  rm -rf ".gitignore"
  mkdir -p "${pkgdir}/usr/share/minetest/mods/${_gitname#*mod-}"
  cp -r * "${pkgdir}/usr/share/minetest/mods/${_gitname#*mod-}"
}