aboutsummaryrefslogtreecommitdiffstats
path: root/community/msitools/APKBUILD
blob: de8f2180c5326f14d21d37889f85d1613c3ff5f8 (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
42
43
44
45
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=msitools
pkgver=0.99
pkgrel=1
pkgdesc="Set of programs to inspect and build Windows Installer (.MSI) files"
url="https://wiki.gnome.org/msitools"
arch="all"
license="GPL-2.0-or-later LGPL-2.1-or-later"
makedepends="libgsf-dev libgcab-dev vala intltool libtool bison"
subpackages="$pkgname-dev $pkgname-lang
	$pkgname-bash-completion:bashcomp:noarch"
source="https://download.gnome.org/sources/msitools/${pkgver}/${pkgname}-${pkgver}.tar.xz
	fix-segfault.patch"
[ "$CARCH" = "s390x" ] && options="!check" # multiple test failures
builddir="$srcdir/"$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr --disable-static
	sed -i 's|LIBTOOL = $(SHELL) $(top_builddir)/libtool|LIBTOOL = /usr/bin/libtool|g' Makefile
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make install DESTDIR="${pkgdir}"
}

bashcomp() {
	depends=""
	pkgdesc="Bash completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	mkdir -p "$subpkgdir"/usr/share/bash-completion/completions/
	mv "$pkgdir"/usr/share/bash-completion/completions/* \
		"$subpkgdir"/usr/share/bash-completion/completions/
}

sha512sums="29c6006591cdf9f8dec1a19c398fbb719879275de43d880ca4cc9fa8b8985021064523050eab4ca68d1c243603070a5d56102cd792d4dc78e75b1bdca08b2247  msitools-0.99.tar.xz
71311d61517997ac7017611326e81e2ec1d5ebdd87179096973299c04f89d2207a046e2437d6e310ee17325d7f527790519e98672f9256ba0574fc8f3a4e87ce  fix-segfault.patch"