aboutsummaryrefslogtreecommitdiffstats
path: root/testing/awake/APKBUILD
diff options
context:
space:
mode:
authorScrumpyJack <scrumpyjack@st.ilet.to>2016-06-28 07:45:34 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-06-28 14:04:33 +0000
commit8e204c86657c7f0ebdda91927740124faaf9dd6d (patch)
tree5c7775fb1a51f519ff3b4f8aba1c711e58976cb1 /testing/awake/APKBUILD
parent29b10cbdf630da57eafbb0861fd4c55efe8e5e71 (diff)
downloadaports-8e204c86657c7f0ebdda91927740124faaf9dd6d.tar.bz2
aports-8e204c86657c7f0ebdda91927740124faaf9dd6d.tar.xz
testing/awake: add missing package dependancy
Adds py-awake as missing package dependancy and minor clean-up of APKBUILD file.
Diffstat (limited to 'testing/awake/APKBUILD')
-rw-r--r--testing/awake/APKBUILD32
1 files changed, 12 insertions, 20 deletions
diff --git a/testing/awake/APKBUILD b/testing/awake/APKBUILD
index 2456dcc201..96c1b1bcdb 100644
--- a/testing/awake/APKBUILD
+++ b/testing/awake/APKBUILD
@@ -1,43 +1,35 @@
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=awake
-_pkgname=awake
pkgver=1.0
-pkgrel=0
-pkgdesc="A command and library to 'wake on lan' a remote host"
+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="python"
+depends="python py-awake"
depends_dev=""
makedepends="python-dev"
install=""
subpackages="$pkgname-doc py-$pkgname:py"
-source="$_pkgname-$pkgver.tar.gz::https://github.com/cyraxjoe/awake/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/cyraxjoe/awake/archive/v$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
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
+ cd "$builddir"
python setup.py build || return 1
}
package() {
- cd "$_builddir"
- python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ cd "$builddir"
+ python setup.py install \
+ --prefix=/usr \
+ --root="$pkgdir" || return 1
}
py() {
- cd "$_builddir"
+ cd "$builddir"
pkgdesc="$pkgname python bindings"
install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
@@ -47,7 +39,7 @@ doc() {
# Doc files
_docs="CHANGES LICENSE README"
for _doc in $_docs; do
- install -Dm644 "$srcdir"/$_pkgname-$pkgver/$_doc \
+ install -Dm644 "$srcdir"/$pkgname-$pkgver/$_doc \
"$subpkgdir"/usr/share/doc/$pkgname/$_doc || return 1
done
}