# Maintainer: André Klitzing pkgname=msitools pkgver=0.97 pkgrel=1 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="bc4cefa7dacc69d10d8a29a0779966c70be97cbeb3a7651cc4292759f56ed2766345596df85a195f54fb4007221f4433ad9f32ed9b39e5b765a565a88ed399dc msitools-0.97.tar.xz 71311d61517997ac7017611326e81e2ec1d5ebdd87179096973299c04f89d2207a046e2437d6e310ee17325d7f527790519e98672f9256ba0574fc8f3a4e87ce fix-segfault.patch"