aboutsummaryrefslogtreecommitdiffstats
path: root/community/msitools/APKBUILD
blob: ee34247260d9737a1eae556c842a74bf9a8ee35a (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
46
47
48
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=msitools
pkgver=0.98
pkgrel=0
pkgdesc="Set of programs to inspect and build Windows Installer (.MSI) files"
url="https://wiki.gnome.org/msitools"
arch="all"
license="GPL"
makedepends="libgsf-dev libgcab-dev vala intltool libtool"
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"
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 completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	_submv usr/share/bash-completion/completions
}

_submv() {
	local path="$1"
	mkdir -p "$subpkgdir"/${path%/*}
	mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/
}

sha512sums="4f15a2a191d0cf6f6425669b9cb384df90fc871cb3985a91e1655cced4293f0f39b3e49297bd39a5725e6815fcce16f751471bc83becb0ae24805ed341d921e1  msitools-0.98.tar.xz
71311d61517997ac7017611326e81e2ec1d5ebdd87179096973299c04f89d2207a046e2437d6e310ee17325d7f527790519e98672f9256ba0574fc8f3a4e87ce  fix-segfault.patch"