# Contributor: Fabian Affolter # Maintainer: Fabian Affolter 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="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" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" python2 setup.py build || return 1 } package() { cd "$builddir" python2 setup.py install \ --prefix=/usr \ --root="$pkgdir" || return 1 } py() { cd "$builddir" pkgdesc="$pkgname python bindings" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ } 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"