summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 551abb96d1b11d3c84b6d4e390f0f1b729dd9bb4 (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
33
34
35
36
37
38
39
40
41
# Maintainer: Thomas Benko <tombenkmo@gmail.com>

pkgname=minetest-mod-scifi_nodes-git
_gitname=${pkgname%-git}
pkgver=42.83a1a8c
pkgrel=1
#epoch=
pkgdesc="D00Med's sci-fi node collection"
arch=('any')
url="https://github.com/danielmeek32/scifi_nodes"
license=('LGPL'
	'CCPL')
#groups=()
depends=()
makedepends=('git')
#checkdepends=()
optdepends=('minetest-usrdir_patch'
	'mesecons-git'
	'minetest-mod-moreblocks-git')
provides=("$_gitname")
#conflicts=()
#replaces=()
#backup=()
#options=()
#install=$pkgname.install
changelog=
source=("$_gitname::git+git://github.com/D00Med/scifi_nodes")
#noextract=()
md5sums=('SKIP')
#validpgpkeys=()

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-}"
}