aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-ntplib
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-09-14 21:34:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-17 15:01:33 +0000
commit7bc133c5f6ef704fdb9b19e44ed6e51d95b8a883 (patch)
tree2a141c799f6359c393d0a08b4011824511e3db46 /testing/py-ntplib
parent589ce857e4d8b4ab54437214ab9caaf441965295 (diff)
downloadaports-7bc133c5f6ef704fdb9b19e44ed6e51d95b8a883.tar.bz2
aports-7bc133c5f6ef704fdb9b19e44ed6e51d95b8a883.tar.xz
testing/py-ntplib: new aport
A Python NTP library "https://pypi.python.org/pypi/ntplib
Diffstat (limited to 'testing/py-ntplib')
-rw-r--r--testing/py-ntplib/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-ntplib/APKBUILD b/testing/py-ntplib/APKBUILD
new file mode 100644
index 0000000000..a6868e946c
--- /dev/null
+++ b/testing/py-ntplib/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-ntplib
+_pkgname=ntplib
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="A Python NTP library"
+url="https://pypi.python.org/pypi/ntplib"
+arch="noarch"
+license="LGPL2+"
+depends="python"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="991a5df0d198f701028001002dc34f2b ntplib-0.3.1.tar.gz"
+sha256sums="088b5863daf8ad79ba49d665b1d1a09b19a8479acd7f30ddeba517c8ecf96217 ntplib-0.3.1.tar.gz"
+sha512sums="905b0526190678888f56ad8556e3d7b7482998b9a1f918a6ec49ef3f28daab8c7355c090339c30675039c9bd6fe673320aa0ad96e0a76ca236c78d21a868846a ntplib-0.3.1.tar.gz"