diff options
author | prspkt <prspkt@protonmail.com> | 2019-03-28 15:45:59 +0200 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-03-28 16:06:25 +0200 |
commit | bafb8bcff3f0fa961f29a26301361f04642dc42f (patch) | |
tree | 896704072570bc49050d2cb2313dca5258235788 /community/py-ethtool/APKBUILD | |
parent | 551c4534df3918c3d3aa76dbf4612032038afc3a (diff) | |
download | aports-bafb8bcff3f0fa961f29a26301361f04642dc42f.tar.bz2 aports-bafb8bcff3f0fa961f29a26301361f04642dc42f.tar.xz |
community/py-ethtool: modernize
Diffstat (limited to 'community/py-ethtool/APKBUILD')
-rw-r--r-- | community/py-ethtool/APKBUILD | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/community/py-ethtool/APKBUILD b/community/py-ethtool/APKBUILD index 87be61a5df..8acfe662f8 100644 --- a/community/py-ethtool/APKBUILD +++ b/community/py-ethtool/APKBUILD @@ -1,6 +1,6 @@ # Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> pkgname=py-ethtool -_realname=python-ethtool +_pkgname=ethtool pkgver=0.7 pkgrel=0 pkgdesc="Python library for the ethtool kernel interface" @@ -16,37 +16,19 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/fedora-python/python-ethtool python-ethtool-libnl-1.0-support.patch fix-includes-and-types.patch " - - builddir="$srcdir"/python-ethtool-$pkgver -prepare() { - cd "$_builddir" - 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" + cd "$builddir" return 0 } package() { - cd "$_builddir" + cd "$builddir" make DESTDIR="$pkgdir" install || return 1 # python2 setup.py install --root="$pkgdir" } -md5sums="2d13e2412948344b8375f5af4ced1c20 python-ethtool-0.7.tar.bz2 -188f260534eb838193e0e8c249b6a33c python-ethtool-libnl-1.0-support.patch -2f9b03956f7e31080718036ad387669f fix-includes-and-types.patch" -sha256sums="5ac6543c2fb7ffc7188cfaee1fac2e2bf6a9f59ce4d62d47b037d3a5ccaefa48 python-ethtool-0.7.tar.bz2 -6682d46a027a4b83b2724625ab0518d224b0805a7bddeb237f497cea7945a932 python-ethtool-libnl-1.0-support.patch -5d2815a5e883b9aebaefbbad11485f15332c6e8484ed6ee57c7884b617a8085f fix-includes-and-types.patch" sha512sums="ee258bbb308d405c7089ab3a9e307c3bdafe557d220a2fad2498af3c54938ef9093973cdde52b6b971d07f888698af42bdcdbff00300c461248cfb2bdc3c35f5 python-ethtool-0.7.tar.bz2 f3b3fbebfc276de712383f24439539bc649dd8cb91c9f63dd53ddf2c074592eb8deb22200947237e52dc6262c1dd3c4729e3912a40d42634a949c8b23deb96c9 python-ethtool-libnl-1.0-support.patch d600fb49864b328be7dae349d948e6f32d1608e590c5dec5289ac6873bb1386527a5eb05e310a94033bc2e48c019b23a88da277b14ad99c798935c9d9359e4c9 fix-includes-and-types.patch" |