summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f933bfea48a132bc84b4a0de2a337455717f8e7a (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
# Maintainer: shellkr <revoltism+AUR$gmail.com>

pkgname=minetest-mod-homedecor_modpack-git
_gitname=${pkgname%-git*}
pkgver=1151.9b61d20
pkgrel=2
pkgdesc='This mod adds a whole bunch of new items to minetest suitable for decorating inside and outside a home.'
arch=('any')
url="https://gitlab.com/VanessaE/homedecor_modpack"
license=('custom')
depends=()
optdepends=('minetest-usrdir_patch')
makedepends=('git')
provides=("$_gitname")
install=$pkgname.install
source=("$_gitname::git+https://gitlab.com/VanessaE/homedecor_modpack.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-}"
}