aboutsummaryrefslogtreecommitdiffstats
path: root/community/awake/APKBUILD
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-10 18:15:26 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 13:10:00 +0200
commit706ef161ae3124ec7a870fb6385fe37414a97e9a (patch)
tree031d56bb41eacd3d602ff1abb4e1dccc7b5d5fb8 /community/awake/APKBUILD
parent9eaaf3500d2d650a2aeee354bb30c02acb717eb3 (diff)
downloadaports-706ef161ae3124ec7a870fb6385fe37414a97e9a.tar.bz2
aports-706ef161ae3124ec7a870fb6385fe37414a97e9a.tar.xz
testing/awake: move to community
Diffstat (limited to 'community/awake/APKBUILD')
-rw-r--r--community/awake/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/community/awake/APKBUILD b/community/awake/APKBUILD
new file mode 100644
index 0000000000..4bef08f10f
--- /dev/null
+++ b/community/awake/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=awake
+pkgver=1.0
+pkgrel=1
+pkgdesc="A python command and library to 'wake on lan' a remote host"
+url="https://github.com/cyraxjoe/awake"
+arch="noarch"
+license="GPL3"
+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"
+ python3 setup.py build || return 1
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+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="LICENSE README"
+ for _doc in $_docs; do
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \
+ "$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
+ done
+}
+
+md5sums="57b7a2e616e37fc29b4011a2e1cc60b2 awake-1.0.tar.gz"
+sha256sums="a4be9058c08ed702b700c9e10e270a7355ba1563f22ad6b2dbd334c6bb5a1730 awake-1.0.tar.gz"
+sha512sums="3b9a69d39c48ef139b6ea125f6f6de36fc861430b6ccd6341bdc82369947745f879e2776fbfda6e3dfae3c0384ecab3fc35f724a4abe760b21ec91ef27562f4d awake-1.0.tar.gz"