aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-crc16
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-12-21 22:10:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-03 13:03:41 +0000
commitc7fa068c2c6052a06aa080940ebfb93a6e42b067 (patch)
tree28aa013c9ad111b360058408ddac55fa43eaf69a /testing/py-crc16
parentcd6cb46e05078b7003ff380bbb26f1d1bbacb4ff (diff)
downloadaports-c7fa068c2c6052a06aa080940ebfb93a6e42b067.tar.bz2
aports-c7fa068c2c6052a06aa080940ebfb93a6e42b067.tar.xz
testing/py-crc16: new aport
Library for calculating CRC16 https://pypi.python.org/pypi/crc16
Diffstat (limited to 'testing/py-crc16')
-rw-r--r--testing/py-crc16/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-crc16/APKBUILD b/testing/py-crc16/APKBUILD
new file mode 100644
index 0000000000..e272fa14f2
--- /dev/null
+++ b/testing/py-crc16/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-crc16
+_pkgname=crc16
+pkgver=0.1.1
+pkgrel=0
+pkgdesc="A Python library for calculating CRC16"
+url="http://bitbucket.org/kmike/vkontakte/"
+arch="all"
+license="MIT"
+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="3cb6a4f5fd10a58c09792e321cc467e5 crc16-0.1.1.tar.gz"
+sha256sums="c1f86aa0390f4baf07d2631b16b979580eae1d9a973a826ce45353a22ee8d396 crc16-0.1.1.tar.gz"
+sha512sums="45d5e8e13b1ac5f885b40516872a9233514f09aa8990915904b214eec2ef6084016f8f0c15bb411aaa1ffc32e8207020916f723e48eee726a7e6989901c9e65d crc16-0.1.1.tar.gz"