summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRX142019-01-24 23:43:46 +0000
committerRX142019-02-19 01:14:06 +0000
commit8ba829c1c4d7db916b942bcc0804c31ca83991f6 (patch)
treee0cd1ab45bc431d7f34dc3cc0d9b1753ec637553
parent379e21338fbe0b9ea0bcbcd3fa9efa4ce3da364c (diff)
downloadaur-8ba829c1c4d7db916b942bcc0804c31ca83991f6.tar.gz
2.2-1
-rw-r--r--.gitignore3
-rw-r--r--PKGBUILD45
2 files changed, 34 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..4a362d1f70e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/*
+!/PKGBUILD
+!/.gitignore
diff --git a/PKGBUILD b/PKGBUILD
index af6c2907221..6f683a6f10e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,39 @@
+# Maintainer: Chris Hobbs (RX14) <chris@rx14.co.uk>
+
pkgname=mcstatus
-pkgver=git
+pkgver=2.2
pkgrel=1
-pkgdesc="A Minecraft server status probing library"
-arch=('x86_64' 'i686')
-url="https://github.com/MoeLeak/mcstatus"
-license=('MIT')
-depends=('cmake' 'boost' 'clang')
-#install=mcstatus.install
-source=("$pkgname::git+https://github.com/MoeLeak/mcstatus.git")
-md5sums=('SKIP')
+pkgdesc="Provides an easy way to query Minecraft servers for any information they can expose."
+arch=(any)
+url="https://github.com/Dinnerbone/mcstatus"
+license=('Apache')
+depends=(python python-six python-click python-dnspython)
+makedepends=(python-setuptools)
+checkdepends=(python-mock python-nose)
+source=("https://github.com/Dinnerbone/mcstatus/archive/release-${pkgver}.tar.gz")
+sha256sums=('489b85ea4ff49efdd94d890b6408368556f63df9bc9f0a4d5dced13ece64e265')
+
+prepare() {
+ cd "${srcdir}/mcstatus-release-${pkgver}"
+
+ sed -i 's/dnspython3/dnspython/' setup.py
+}
+
build() {
- cd $pkgname
- cmake .
- make
+ cd "${srcdir}/mcstatus-release-${pkgver}"
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}/mcstatus-release-${pkgver}"
+
+ nosetests
}
package() {
- cd $pkgname
- make DESTDIR="$pkgdir/" install
+ cd "${srcdir}/mcstatus-release-${pkgver}"
+
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}