summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Zou2019-03-21 17:37:28 +0100
committerMichel Zou2019-03-21 17:37:28 +0100
commit237103f3a3a74a230a839cb5289a41713ce122e7 (patch)
tree0994fe20337f2175317dbb0fef7b82bfb49baf07
parentb0647375c868899e0f51e2efa932295252d97471 (diff)
downloadaur-237103f3a3a74a230a839cb5289a41713ce122e7.tar.gz
1.1.6
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD26
2 files changed, 10 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 66059f9b566..caaec20f8c8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,14 @@
-# Generated by mksrcinfo v8
-# Sun Mar 4 07:44:03 UTC 2018
pkgbase = python-wakeonlan
pkgdesc = A small python module for wake on lan
- pkgver = 1.0.0
+ pkgver = 1.1.6
pkgrel = 1
url = https://github.com/remcohaszing/pywakeonlan
arch = any
license = WTFPL
makedepends = python-setuptools
- makedepends = python2-setuptools
- source = https://pypi.io/packages/source/w/wakeonlan/wakeonlan-1.0.0.tar.gz
- md5sums = 91e0c97210875915af88ccb9103c866d
-
-pkgname = python-wakeonlan
depends = python
+ source = https://pypi.io/packages/source/w/wakeonlan/wakeonlan-1.1.6.tar.gz
+ sha256sums = 5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9
-pkgname = python2-wakeonlan
- depends = python2
+pkgname = python-wakeonlan
diff --git a/PKGBUILD b/PKGBUILD
index 5de53fd0df0..9549b31f074 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,41 +1,27 @@
-pkgbase=python-wakeonlan
-pkgname=('python-wakeonlan' 'python2-wakeonlan')
-pkgver=1.0.0
+pkgname=python-wakeonlan
+pkgver=1.1.6
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')
+makedepends=('python-setuptools')
+depends=('python')
source=("https://pypi.io/packages/source/w/wakeonlan/wakeonlan-${pkgver}.tar.gz")
-md5sums=('91e0c97210875915af88ccb9103c866d')
+sha256sums=('5e6013a17004809e676c150689abd94bcc0f12a37ad3fbce1f6270968f95ffa9')
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')
-
+package() {
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/wakeonlan "${pkgdir}"/usr/bin/wakeonlan2
-}