summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2d7bd0b3e08f7caeb4ea6a5f26a0d8e6acd6d844 (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
# Maintainer: HER0_01 <aconrad103 at gmail.com>

pkgname=mesecons-git
pkgver=784.2554164
pkgrel=1
pkgdesc="Minetest mod that adds digital circuitry, similar to Minecraft's redstone."
arch=('any')
url="http://mesecons.net/"
license=('custom')
depends=('minetest')
makedepends=('git')
provides=('mesecons')
source=("$pkgname::git://github.com/minetest-mods/mesecons.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$pkgname"
  echo $(git rev-list --count master).$(git rev-parse --short master)
}

package() {
  cd "$srcdir/$pkgname"
  mkdir -p "$pkgdir/usr/share/minetest/mods/$pkgname"
  cp -r * "$pkgdir/usr/share/minetest/mods/$pkgname"
}