diff options
author | Luis Martinez | 2023-01-28 01:06:09 -0600 |
---|---|---|
committer | Luis Martinez | 2023-01-28 01:06:09 -0600 |
commit | a0b7b912e7a2d3bd21fc0dcc43c65f46f3dc7dde (patch) | |
tree | 64f1fced59972f749232b8bf79e5515eb93781d1 | |
parent | f059238ba14d4e7eb8ec1df8ddc04d5d9b318ea3 (diff) | |
download | aur-libvhdi.tar.gz |
update to 20221124
-rw-r--r-- | .SRCINFO | 41 | ||||
-rw-r--r--[-rwxr-xr-x] | PKGBUILD | 67 |
2 files changed, 50 insertions, 58 deletions
@@ -1,28 +1,25 @@ pkgbase = libvhdi - pkgdesc = Library and tools to access the Virtual Hard Disk (VHD) image format - pkgver = 20160424 + pkgdesc = Library and tools for the Virtual Hard Disk (VHD) image format + pkgver = 20221124 pkgrel = 1 - url = https://github.com/libyal/libvhdi/ - arch = any - license = LGPLv3+ - makedepends = python2 - makedepends = python - makedepends = gcc + url = https://github.com/libyal/libvhdi + arch = x86_64 + license = LGPL3 makedepends = git - makedepends = automake - makedepends = autoconf - makedepends = gettext - makedepends = libtool - makedepends = pkg-config - makedepends = fuse - depends = python2 - depends = python - depends = fuse - provides = libvhdi - provides = python2-libvhdi - provides = python3-libvhdi - source = https://github.com/libyal/libvhdi/archive/20160424.zip - md5sums = 1e70dc38ab301c13f3dcef8913efd81f + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + source = libvhdi-20221124.tar.gz::https://github.com/libyal/libvhdi/releases/download/20221124/libvhdi-alpha-20221124.tar.gz + source = libvhdi-20221124.tar.gz.asc::https://github.com/libyal/libvhdi/releases/download/20221124/libvhdi-alpha-20221124.tar.gz.asc + validpgpkeys = 0ED9020DA90D3F6E70BD3945D9625E5D7AD0177E + sha256sums = 0d46cc2fa4f9385e58f891fc5a1c3eec92f69e30a5c5a550a3f560693ed34295 + sha256sums = SKIP pkgname = libvhdi + depends = glibc + provides = libvhdi.so +pkgname = python-pyvhdi + pkgdesc = Python module for libvhdi + depends = python diff --git a/PKGBUILD b/PKGBUILD index 4c9c3af818a0..618987cd44a2 100755..100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,45 +1,40 @@ -pkgname=('libvhdi') -_realname=libvhdi -pkgver=20160424 -pkgrel=1 -pkgdesc="Library and tools to access the Virtual Hard Disk (VHD) image format" -url="https://github.com/libyal/libvhdi/" -arch=('any') -license=('LGPLv3+') - -provides=('libvhdi' 'python2-libvhdi' 'python3-libvhdi') -depends=('python2' 'python' 'fuse') -makedepends=('python2' 'python' 'gcc' 'git' 'automake' 'autoconf' 'gettext' 'libtool' 'pkg-config' 'fuse') -source=(https://github.com/libyal/${_realname}/archive/${pkgver}.zip) +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> -prepare() { - cd $srcdir/${_realname}-${pkgver} +## GPG keys: gpg --keyserver keyserver.ubuntu.com --recv-keys ${GPG_KEY_HERE} - ./synclibs.sh - ./autogen.sh -} +pkgname=('libvhdi' 'python-pyvhdi') +pkgver=20221124 +pkgrel=1 +pkgdesc='Library and tools for the Virtual Hard Disk (VHD) image format' +url='https://github.com/libyal/libvhdi' +arch=('x86_64') +license=('LGPL3') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel') +source=("$pkgname-$pkgver.tar.gz::$url/releases/download/$pkgver/$pkgname-alpha-$pkgver.tar.gz" + "$pkgname-$pkgver.tar.gz.asc::$url/releases/download/$pkgver/$pkgname-alpha-$pkgver.tar.gz.asc") +sha256sums=('0d46cc2fa4f9385e58f891fc5a1c3eec92f69e30a5c5a550a3f560693ed34295' + 'SKIP') +validpgpkeys=('0ED9020DA90D3F6E70BD3945D9625E5D7AD0177E') ## Joachim Metz build() { - cd $srcdir/${_realname}-${pkgver} - ./configure --prefix=/usr --enable-python2 --enable-python3 - make + cd "$pkgname-$pkgver" + ./configure --prefix=/usr --enable-python3 + make + python -m build --wheel --no-isolation } -#Check will break ./configure options -#check() { -# cd $srcdir/${_realname}-${pkgver} -# ./runtests.sh -#} - package_libvhdi() { - cd $srcdir/${_realname}-${pkgver} - make DESTDIR=${pkgdir} install + depends=('glibc') + provides=("$pkgname.so") + cd "$pkgname-$pkgver" + ## Calling the setup.py for any reason resets out config script + ./configure --prefix=/usr + DESTDIR="$pkgdir" make install } -#setup.py will break ./configure options -#package_python2-libvhdi() { -# cd $srcdir/${_realname}-${pkgver} -# python2 setup.py install --root="${pkgdir}" -#} - -md5sums=('1e70dc38ab301c13f3dcef8913efd81f') +package_python-pyvhdi() { + pkgdesc='Python module for libvhdi' + depends=('python') + cd "$pkgbase-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl +} |