From dac145e504d5bed58c6261408682502686597bc9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 6 Oct 2013 18:02:27 +0000 Subject: testing/py-awake: rename to awake --- testing/awake/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 testing/awake/APKBUILD (limited to 'testing/awake/APKBUILD') 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 +# Maintainer: Fabian Affolter +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" -- cgit v1.2.3