Skip to content
Snippets Groups Projects
Unverified Commit d99915c2 authored by Leo's avatar Leo Committed by TBK
Browse files

testing/libguestfs: modernize, fix license

Closes: GH-8131
parent 15a83dd8
No related branches found
No related tags found
No related merge requests found
# Maintainer: Fathi Boudra <fathi.boudra@linaro.org> # Maintainer: Fathi Boudra <fathi.boudra@linaro.org>
pkgname=libguestfs pkgname=libguestfs
pkgver=1.40.2 pkgver=1.40.2
pkgrel=2 pkgrel=3
pkgdesc="tools for accessing and modifying virtual machine disk images" pkgdesc="tools for accessing and modifying virtual machine disk images"
url="http://libguestfs.org/" url="http://libguestfs.org/"
arch="x86_64" arch="x86_64"
license="GPL2" license="GPL-2.0-or-later"
depends="cdrkit curl gptfdisk qemu-img qemu-system-x86_64" depends="cdrkit curl gptfdisk qemu-img qemu-system-x86_64"
makedepends=" makedepends="
acl-dev acl-dev
augeas-dev augeas-dev
bash bash
bison bison
cdrkit
coreutils coreutils
cpio cpio
file-dev file-dev
...@@ -23,7 +22,6 @@ makedepends=" ...@@ -23,7 +22,6 @@ makedepends="
hivex-dev hivex-dev
jansson-dev jansson-dev
gperf gperf
gptfdisk
libcap-dev libcap-dev
libconfig-dev libconfig-dev
libselinux-dev libselinux-dev
...@@ -39,23 +37,18 @@ makedepends=" ...@@ -39,23 +37,18 @@ makedepends="
perl perl
psmisc psmisc
python3-dev python3-dev
qemu-img
qemu-system-x86_64
readline-dev readline-dev
xz xz
xz-dev xz-dev
" "
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py3-$pkgname:_py" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang py3-$pkgname:_py"
source=" source="
http://download.libguestfs.org/1.40-stable/$pkgname-$pkgver.tar.gz http://download.libguestfs.org/1.40-stable/$pkgname-$pkgver.tar.gz
https://raw.githubusercontent.com/alpinelinux/aports/3.9-stable/main/kbd/error.h https://raw.githubusercontent.com/alpinelinux/aports/3.9-stable/main/kbd/error.h
" "
builddir="$srcdir/$pkgname-$pkgver"
options="!check charset.alias" # Test suite does not support Alpine Linux at this moment options="!check charset.alias" # Test suite does not support Alpine Linux at this moment
prepare() { prepare() {
cd "$builddir"
# busybox gzip does not support --best # busybox gzip does not support --best
sed -i 's/gzip --best/gzip -9/g' test-data/files/* sed -i 's/gzip --best/gzip -9/g' test-data/files/*
# musl lacks error.h # musl lacks error.h
...@@ -63,7 +56,6 @@ prepare() { ...@@ -63,7 +56,6 @@ prepare() {
} }
build() { build() {
cd "$builddir"
PYTHON=/usr/bin/python3 ./configure \ PYTHON=/usr/bin/python3 ./configure \
--prefix=/usr \ --prefix=/usr \
--mandir=/usr/share/man \ --mandir=/usr/share/man \
...@@ -99,7 +91,6 @@ build() { ...@@ -99,7 +91,6 @@ build() {
# } # }
package() { package() {
cd "$builddir"
make V=1 INSTALLDIRS=vendor DESTDIR="$pkgdir" install make V=1 INSTALLDIRS=vendor DESTDIR="$pkgdir" install
make V=1 INSTALLDIRS=vendor DESTDIR="$pkgdir" -C python install make V=1 INSTALLDIRS=vendor DESTDIR="$pkgdir" -C python install
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment