blob: 8405e9d7b8f1a32e6e3ac8a2e944c4f1195870ec (
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
32
|
# Maintainer: Otto Sabart <seberm@seberm.com>
pkgname=minetest-mod-moreblocks-git
_gitname=${pkgname%-git*}
pkgver=157.27051c7
pkgrel=2
pkgdesc="Mob Framework Mod (former animals mod) provides a framework for creating mobs in Minetest"
arch=('any')
url="https://forum.minetest.net/viewtopic.php?f=11&t=509"
license=('zlib')
depends=('minetest-common')
makedepends=('git')
provides=("$_gitname")
conflicts=()
source=("$_gitname::git+https://github.com/minetest-mods/moreblocks")
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-}"
}
|