blob: b92e46cf6f899d18cefc53b1b7ea1066f452ff20 (
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
|
# Maintainer: OriginCode <self@origincode.me>
pkgname=python-mcpi-git
_pkgname=mcpi
pkgver=r13.47c6d5b
pkgrel=1
pkgdesc="Minecraft: Pi Edition API Python Library"
arch=('any')
url="https://github.com/martinohanlon/mcpi"
license=('custom')
depends=('python')
makedepends=('python-setuptools' 'git')
source=('git+https://github.com/martinohanlon/mcpi.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
python setup.py build
}
package() {
cd "$srcdir/$_pkgname"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|