summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMichel Zou2016-11-20 13:28:32 +0100
committerMichel Zou2016-11-20 13:28:32 +0100
commitbacc9bde4d2710d1e9aacc60d469ea2a48df2fe6 (patch)
tree2593e40dd35695ed36813a18a4077f79cbfd73a7 /PKGBUILD
downloadaur-bacc9bde4d2710d1e9aacc60d469ea2a48df2fe6.tar.gz
0.2.2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..bf28545db1c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+pkgbase=python-wakeonlan
+pkgname=('python-wakeonlan' 'python2-wakeonlan')
+pkgver=0.2.2
+pkgrel=1
+pkgdesc="A small python module for wake on lan"
+url="https://github.com/remcohaszing/pywakeonlan"
+arch=(any)
+license=('WTFPL')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.python.org/packages/26/87/4164f76446fb372ce9ff10f9458ac00dade098ef054772ab3333139e8cfa/wakeonlan-0.2.2.tar.gz")
+md5sums=('738cf2e3c01de8ff393d0863f5172383')
+
+prepare() {
+ cd "${srcdir}"/wakeonlan-$pkgver
+}
+
+build() {
+ cp -r "${srcdir}"/wakeonlan-$pkgver "${srcdir}"/wakeonlan-$pkgver-py2
+
+ cd "${srcdir}"/wakeonlan-$pkgver
+ python setup.py build
+
+ cd "${srcdir}"/wakeonlan-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-wakeonlan() {
+ depends=('python')
+
+ cd "${srcdir}/wakeonlan-$pkgver"
+ python setup.py install --root=${pkgdir} --optimize=1
+}
+
+package_python2-wakeonlan() {
+ depends=('python2')
+
+ cd "${srcdir}/wakeonlan-$pkgver"
+ python2 setup.py install --root=${pkgdir} --optimize=1
+ mv ${pkgdir}/usr/bin/wol ${pkgdir}/usr/bin/wol2
+}
+