diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-09-19 10:25:21 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-10-03 12:48:18 +0000 |
commit | 9e08668427c9328b6c63c842927bf68af79ac066 (patch) | |
tree | 24d51516d1c4c1471596a77d44862119bc1557e8 /testing | |
parent | 777389bca1f3041ce2b2ff91f309ce4f7ac0d0a3 (diff) | |
download | aports-9e08668427c9328b6c63c842927bf68af79ac066.tar.bz2 aports-9e08668427c9328b6c63c842927bf68af79ac066.tar.xz |
testing/msitools: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/msitools/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/msitools/APKBUILD b/testing/msitools/APKBUILD new file mode 100644 index 0000000000..fed6a16ef5 --- /dev/null +++ b/testing/msitools/APKBUILD @@ -0,0 +1,46 @@ +# Maintainer: André Klitzing <aklitzing@gmail.com> +pkgname=msitools +pkgver=0.97 +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="http://ftp.gnome.org/pub/GNOME/sources/msitools/${pkgver}/${pkgname}-${pkgver}.tar.xz" +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" |