summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7ac0f2377f6d1ac8a1647bdaef3873cbbc4fa075 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Maintainer: LekKit <nyandarknessgirl@gmail.com>
# Prev-maintainer: Luis Martinez <luis dot martinez at disroot dot org>

## GPG keys: gpg --keyserver keyserver.ubuntu.com --recv-keys ${GPG_KEY_HERE}

pkgname=('libvhdi' 'python-pyvhdi')
pkgver=20240509
pkgrel=1
pkgdesc='Library and tools for the Virtual Hard Disk (VHD) image format'
url='https://github.com/libyal/libvhdi'
arch=('x86_64' 'aarch64' 'riscv64')
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=('9efebe54a7ae6cf8b49103a3a0c37553f3f22d7526303a654aeb59eca58ccec7'
            'SKIP')
validpgpkeys=('0ED9020DA90D3F6E70BD3945D9625E5D7AD0177E') ## Joachim Metz

build() {
	cd "$pkgname-$pkgver"
	./configure --prefix=/usr --enable-python3
	make
	python -m build --wheel --no-isolation
}

package_libvhdi() {
	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
}

package_python-pyvhdi() {
	pkgdesc='Python module for libvhdi'
	depends=('python')
	cd "$pkgbase-$pkgver"
	python -m installer --destdir="$pkgdir" dist/*.whl
}