summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGoliathLabs2020-05-27 19:17:08 +0200
committerGoliathLabs2020-05-27 19:17:08 +0200
commit2ead227aa8843970b155d03a97ace2302014ffe0 (patch)
tree4f736a24cfe2a61c798e175d9f4c7830d05495d3 /PKGBUILD
parent95de7b6ddec41e109bd0cc9d42e8348535212990 (diff)
downloadaur-msitools-git.tar.gz
Updated: PKGBUILD
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 26 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index f76205d364a..393dea89a9e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,34 +1,45 @@
+# Maintainer:
+# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Andre Klitzing <aklitzing () gmail () com>
-_gitname=msitools
-pkgname=$_gitname-git
-pkgver=r694.c7b6840
+_pkgname=msitools
+pkgname=$_pkgname-git
+pkgver=r825.7ac1e76
pkgrel=1
-pkgdesc="Set of programs to inspect and build Windows Installer (.MSI) files"
+pkgdesc="Set of programs to inspect and build Windows Installer (.MSI) files (Git)"
arch=('i686' 'x86_64')
url="https://wiki.gnome.org/msitools"
license=('GPL')
depends=('libgsf' 'gcab')
+makedepends=('intltool' 'git' 'vala')
conflicts=('msitools')
provides=('msitools')
-makedepends=('intltool' 'vala')
-source=(git+https://github.com/GNOME/msitools)
+source=(git+https://github.com/GNOME/msitools.git)
sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/${_gitname}"
- printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+ cd "${srcdir}/${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/$_pkgname"
+ git submodule update --init --recursive
}
build() {
- cd "$srcdir/$_gitname"
- ./autogen.sh
- ./configure --prefix=/usr
- sed -i 's|LIBTOOL = $(SHELL) $(top_builddir)/libtool|LIBTOOL = /usr/bin/libtool|g' Makefile
- make
+ cd "$srcdir/$_pkgname"
+ arch-meson $srcdir/$_pkgname build
+ ninja -C build
+
+}
+
+check() {
+ meson test -C $srcdir/$_pkgname/build
}
package() {
- cd "$srcdir/$_gitname"
- make install DESTDIR="${pkgdir}"
+ cd "$srcdir/$_pkgname"
+ DESTDIR="$pkgdir" meson install -C $srcdir/$_pkgname/build
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}