diff options
author | brent s | 2019-10-17 14:44:43 -0400 |
---|---|---|
committer | brent s | 2019-10-17 14:44:43 -0400 |
commit | 0c6bf2c37627c72047b071932f5768229a0d0c66 (patch) | |
tree | 9bad708db62347520affb70485ec4f7848a92882 | |
parent | 2911f7fd5256f40772e16391b8f57f036f946a2c (diff) | |
download | aur-0c6bf2c37627c72047b071932f5768229a0d0c66.tar.gz |
making PKGBUILD functional
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 33 insertions, 23 deletions
@@ -1,18 +1,24 @@ -# Generated by aurpkgs -# Thu Oct 17 18:38:59 UTC 2019 pkgbase = python-blkinfo - pkgdesc = a python library to list information about all available or the specified block devices + pkgdesc = A python library to list information about all available or the specified block devices pkgver = 0.1.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/grinrag/blkinfo - arch = i686 - arch = x86_64 + arch = any license = GPL3 - depends = python3 + depends = python + depends = python2 depends = util-linux - source = https://files.pythonhosted.org/packages/ae/ef/d1d8ffa6f54684f24c5c8dca3a9e5acc19ab752bc4671de9a830a7dc79cb/blkinfo-0.1.2.tar.gz + source = https://files.pythonhosted.org/packages/source/b/blkinfo/blkinfo-0.1.2.tar.gz source = blkinfo-0.1.2.tar.gz.sig + validpgpkeys = 748231EBCBD808A14F5E85D28C004C2F93481F6B sha512sums = 1fc84964e5b253dd2c179769499af996a622bd3f8a3ef5acce894c2f538597521f7f8f522dc2b1e69909bfc632f786714efe81eb9d7727442dc14ea67375b528 sha512sums = SKIP pkgname = python-blkinfo + depends = python + depends = util-linux + +pkgname = python2-blkinfo + depends = python2 + depends = util-linux + @@ -2,27 +2,31 @@ validpgpkeys=('748231EBCBD808A14F5E85D28C004C2F93481F6B') # Bug reports can be filed at https://bugs.square-r00t.net/index.php?project=3 # News updates for packages can be followed at https://devblog.square-r00t.net -pkgname=python-blkinfo +pkgname=('python-blkinfo' 'python2-blkinfo') pkgver=0.1.2 -pkgrel=1 -pkgdesc="a python library to list information about all available or the specified block devices" -arch=( 'i686' 'x86_64' ) +pkgrel=2 +pkgdesc="A python library to list information about all available or the specified block devices" +arch=('any') url="https://github.com/grinrag/blkinfo" -license=( 'GPL3' ) -depends=( 'python3' 'util-linux' ) -_pkgname=python-blkinfo +license=('GPL3') +depends=('python' 'python2' 'util-linux') +_pkgname=blkinfo install= changelog= noextract=() -source=("https://files.pythonhosted.org/packages/ae/ef/d1d8ffa6f54684f24c5c8dca3a9e5acc19ab752bc4671de9a830a7dc79cb/blkinfo-0.1.2.tar.gz" - "blkinfo-0.1.2.tar.gz.sig") +source=("https://files.pythonhosted.org/packages/source/b/${_pkgname}/${_pkgname}-${pkgver}.tar.gz" + "${_pkgname}-${pkgver}.tar.gz.sig") sha512sums=('1fc84964e5b253dd2c179769499af996a622bd3f8a3ef5acce894c2f538597521f7f8f522dc2b1e69909bfc632f786714efe81eb9d7727442dc14ea67375b528' 'SKIP') -build() { - cd "${srcdir}/${_pkgname}/src" - make prefix=${pkgdir}/usr + +package_python2-blkinfo() { + depends=('python2' 'util-linux') + cd "${srcdir}/${_pkgname}-${pkgver}" + python2 setup.py install --root="${pkgdir}" --optimize=1 } -package() { - install -D -m755 ${srcdir}/${_pkgname}/src/${_pkgname} ${pkgdir}/usr/bin/${_pkgname} - install -D -m644 ${srcdir}/${_pkgname}/docs/README.html.en ${pkgdir}/usr/share/doc/${_pkgname}/README.html + +package_python-blkinfo() { + depends=('python' 'util-linux') + cd "${srcdir}/${_pkgname}-${pkgver}" + python3 setup.py install --root="${pkgdir}" --optimize=1 } |