diff options
author | shellkr | 2018-10-13 22:22:07 +0200 |
---|---|---|
committer | shellkr | 2018-10-13 22:22:07 +0200 |
commit | c596d597dd7ac4d2b2016b10346d23b500e14e46 (patch) | |
tree | d6bb9eb49071837ea95f4a7dd2853484ba044d7e | |
download | aur-minetest-mod-3d_armor-git.tar.gz |
initial push
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 29 | ||||
-rw-r--r-- | minetest-mod-3d_armor-git.install | 22 |
3 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cfe75a3b5333 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Sat Oct 13 20:22:07 UTC 2018 +pkgbase = minetest-mod-3d_armor-git + pkgdesc = Adds craftable armor that is visible to other players.. (Mod for Minetest) + pkgver = 332.7032515 + pkgrel = 1 + url = https://github.com/stujones11/minetest-3d_armor + install = minetest-mod-3d_armor-git.install + arch = any + license = custom + makedepends = git + optdepends = minetest-usrdir_patch + provides = minetest-mod-3d_armor + source = minetest-mod-3d_armor::git+https://github.com/stujones11/minetest-3d_armor.git + md5sums = SKIP + +pkgname = minetest-mod-3d_armor-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9e37c65d6ec8 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: shellkr <revoltism+AUR$gmail.com> + +pkgname=minetest-mod-3d_armor-git +_gitname=${pkgname%-git*} +pkgver=332.7032515 +pkgrel=1 +pkgdesc='Adds craftable armor that is visible to other players.. (Mod for Minetest)' +arch=('any') +url="https://github.com/stujones11/minetest-3d_armor" +license=('custom') +depends=() +optdepends=('minetest-usrdir_patch') +makedepends=('git') +provides=("$_gitname") +install=$pkgname.install +source=("$_gitname::git+https://github.com/stujones11/minetest-3d_armor.git") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/$_gitname" + echo $(git rev-list --count master).$(git rev-parse --short master) +} + +package() { + cd "$srcdir/$_gitname" + mkdir -p "$pkgdir/usr/share/minetest/mods/${_gitname#*mod-}" + cp -r * "$pkgdir/usr/share/minetest/mods/${_gitname#*mod-}" +} + diff --git a/minetest-mod-3d_armor-git.install b/minetest-mod-3d_armor-git.install new file mode 100644 index 000000000000..801a1209b181 --- /dev/null +++ b/minetest-mod-3d_armor-git.install @@ -0,0 +1,22 @@ + +post_install() { + echo + echo '############################### NOTICE ! ###################################' + echo + echo ' Mod will be installed to /usr/share/minetest/mods which is the default' + echo ' directory for mods. This is disabled by default though and needs a patch.' + echo ' You can install "minetest-usrdir_patch" which handles this for you.' + echo + echo +} + +post_upgrade() { + echo + echo '############################### NOTICE ! ###################################' + echo + echo ' Mod will be installed to /usr/share/minetest/mods which is the default' + echo ' directory for mods. This is disabled by default though and needs a patch.' + echo ' You can install "minetest-usrdir_patch" which handles this for you.' + echo + echo +} |