diff options
author | Otto Sabart | 2016-06-13 23:38:44 +0200 |
---|---|---|
committer | Otto Sabart | 2016-06-13 23:38:44 +0200 |
commit | ecef0df5d22f2fe60d24622598d0ea961e1f21de (patch) | |
tree | eaef01d977de52195fdd5961a7a992543e8377f5 | |
download | aur-ecef0df5d22f2fe60d24622598d0ea961e1f21de.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..84f238344f79 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = minetest-mod-moreblocks-git + pkgdesc = Mob Framework Mod (former animals mod) provides a framework for creating mobs in Minetest + pkgver = 157.27051c7 + pkgrel = 1 + url = https://forum.minetest.net/viewtopic.php?f=11&t=509 + arch = any + license = zlib + depends = minetest-common + provides = minetest-mod-moreblocks + source = minetest-mod-moreblocks-git::git+https://github.com/minetest-mods/moreblocks + sha512sums = SKIP + +pkgname = minetest-mod-moreblocks-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8df5e36cb987 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Otto Sabart <seberm@seberm.com> + +pkgname=minetest-mod-moreblocks-git +_gitname=${pkgname%-git*} +pkgver=157.27051c7 +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?f=11&t=509" +license=('zlib') +depends=('minetest-common') +makedepends=() +provides=("$_gitname") +conflicts=() +source=("$pkgname::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-}" +} |