diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-10-06 18:02:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 08:23:15 +0000 |
commit | dac145e504d5bed58c6261408682502686597bc9 (patch) | |
tree | 8ce926adf89fa581977cc5b47a92296c0f200f3b /testing/awake/APKBUILD | |
parent | fff0113e20b474779c71bff0e4bdce148ecbd52e (diff) | |
download | aports-dac145e504d5bed58c6261408682502686597bc9.tar.bz2 aports-dac145e504d5bed58c6261408682502686597bc9.tar.xz |
testing/py-awake: rename to awake
Diffstat (limited to 'testing/awake/APKBUILD')
-rw-r--r-- | testing/awake/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/awake/APKBUILD b/testing/awake/APKBUILD new file mode 100644 index 0000000000..a94712aad2 --- /dev/null +++ b/testing/awake/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-awake +_pkgname=awake +pkgver=1.0 +pkgrel=0 +pkgdesc="A command and library to 'wake on lan' a remote host" +url="https://github.com/cyraxjoe/awake" +arch="noarch" +license="GPL3" +depends="python" +depends_dev="" +makedepends="python-dev" +install="" +subpackages="$pkgname-doc" +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 +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +doc() { + # Doc files + _docs="CHANGES 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" |