summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4208ee566d1989f88ab035d1b84cf2a6dfffed8c (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
# Maintainer: Buce <dmbuce@gmail.com>

pkgname=mcexplore-git
pkgver=1.6.r3.g8c45e64
pkgver() {
  cd "$srcdir/$pkgname"
  if ! git describe --tags 2>/dev/null; then
    echo "0.r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
  fi | sed 's/-/.r/; s/-/./g'
}
pkgrel=1
pkgdesc="Use a minecraft server to generate a square of land."
arch=(any)
url="https://github.com/DMBuce/mcexplore"
license=('CCPL:by-sa')
groups=()
depends=(python2 python2-nbt)
provides=(mcexplore)
conflicts=(mcexplore)
makedepends=('git' 'asciidoc')
source=("$pkgname::git://github.com/DMBuce/${pkgname%-git}.git")
#source=("$pkgname::git+ssh://git@mantrid/~/${pkgname%-git}.git")
noextract=()
md5sums=('SKIP')

prepare() {
  cd "$srcdir/$pkgname"

  sed -i '1s/python/python2/' mcexplore.py
}

package() {
  cd "$srcdir/$pkgname"
  make prefix=/usr DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et: