aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-10 18:13:47 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 13:09:59 +0200
commit9eaaf3500d2d650a2aeee354bb30c02acb717eb3 (patch)
treef761c4438691028de79bf9efda4ea056b52b5160
parent8ba1ecd97516a02f0432c64568a0946041855ad5 (diff)
downloadaports-9eaaf3500d2d650a2aeee354bb30c02acb717eb3.tar.bz2
aports-9eaaf3500d2d650a2aeee354bb30c02acb717eb3.tar.xz
testing/awake: move to py3
-rw-r--r--testing/awake/APKBUILD33
1 files changed, 14 insertions, 19 deletions
diff --git a/testing/awake/APKBUILD b/testing/awake/APKBUILD
index 547421ab6c..4bef08f10f 100644
--- a/testing/awake/APKBUILD
+++ b/testing/awake/APKBUILD
@@ -7,43 +7,38 @@ pkgdesc="A python command and library to 'wake on lan' a remote host"
url="https://github.com/cyraxjoe/awake"
arch="noarch"
license="GPL3"
-depends="python2 py-awake"
-depends_dev=""
-makedepends="python2-dev"
-install=""
-subpackages="$pkgname-doc py-$pkgname:py"
-source="$pkgname-$pkgver.tar.gz::https://github.com/cyraxjoe/awake/archive/v$pkgver.tar.gz"
-
+depends="py3-awake"
+makedepends="python3-dev"
+subpackages="py3-$pkgname:py3 $pkgname-doc"
+source="https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
- python2 setup.py build || return 1
+ python3 setup.py build || return 1
}
package() {
cd "$builddir"
- python2 setup.py install \
- --prefix=/usr \
- --root="$pkgdir" || return 1
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-py() {
- cd "$builddir"
- pkgdesc="$pkgname python bindings"
- install -d "$subpkgdir"/usr/lib
+py3() {
+ pkgdesc="Python library for $pkgname"
+ depends="python3"
+ mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
doc() {
# Doc files
- _docs="CHANGES LICENSE README"
+ _docs="LICENSE README"
for _doc in $_docs; do
install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \
"$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
done
}
-md5sums="3ecbe84d477e280e020f69c508f76ef6 awake-1.0.tar.gz"
-sha256sums="81369a21dd32c44284ee68b1fc283d0edd0da483f3e1655877ec1db2f1c22df5 awake-1.0.tar.gz"
-sha512sums="65d7c7344b1478431be59e4cebfd3b043d9034bb0bbc3562979b79064539669f496ef163ae9e71b47dac8289d3b5e6488f994135ee49e305c3ba9c95ea59c42f awake-1.0.tar.gz"
+md5sums="57b7a2e616e37fc29b4011a2e1cc60b2 awake-1.0.tar.gz"
+sha256sums="a4be9058c08ed702b700c9e10e270a7355ba1563f22ad6b2dbd334c6bb5a1730 awake-1.0.tar.gz"
+sha512sums="3b9a69d39c48ef139b6ea125f6f6de36fc861430b6ccd6341bdc82369947745f879e2776fbfda6e3dfae3c0384ecab3fc35f724a4abe760b21ec91ef27562f4d awake-1.0.tar.gz"