summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 27 insertions, 21 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 42f75526e98..f8b920e72df 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,36 +1,42 @@
+# Maintainer: redtide <redtid3 at gmail dot com>
# Maintainer: Antonio O. <antonio.mx.9605 at gmail dot com>
+# TODO: replace git checkout with a tarball when available, see
+# https://github.com/wxFormBuilder/wxFormBuilder/issues/676
+
+_gitname=wxFormBuilder
pkgname=wxformbuilder
-gitname=wxFormBuilder
pkgver=3.9.0
-pkgrel=1
-pkgdesc='RAD tool for wxWidgets GUI design'
+pkgrel=2
+pkgdesc="RAD tool for wxWidgets GUI design"
arch=('i686' 'x86_64')
-url=https://github.com/wxFormBuilder/wxFormBuilder
-license=('GPL')
+url="https://github.com/wxFormBuilder/wxFormBuilder"
+license=('GPL2')
provides=('wxformbuilder')
conflicts=('wxformbuilder' 'wxformbuilder-svn' 'wxformbuilder-git')
-depends=('wxgtk2')
+depends=('wxgtk3')
makedepends=('git' 'ninja' 'meson')
-source=('git://github.com/wxFormBuilder/wxFormBuilder.git#tag=v3.9.0')
-md5sums=('SKIP')
-
+source=(
+ "git://github.com/wxFormBuilder/wxFormBuilder.git#tag=v3.9.0"
+ "nativefile.ini"
+)
+sha512sums=(
+ "SKIP"
+ "c44a263897bc22e46bbe8d106cb0e4ee4c331fec0d271b4140055c59a891360c251fa7f33ce7b83fa8a3515c954c6cbf9b06eddaff2e3b671709d652fd603836"
+)
prepare() {
- cd $srcdir/${gitname}
+ cd "${srcdir}/${_gitname}"
git submodule update --init
}
-
build() {
- cd $srcdir/${gitname}
- meson _build --prefix $srcdir/${gitname}/_install
- ninja -j$(nproc) -C _build install
+ cd "${srcdir}/${_gitname}"
+ meson _build --native-file "${srcdir}/nativefile.ini" --prefix /usr
+ ninja -C _build
}
-
package() {
- cd $srcdir/${gitname}
- install -Dm 755 -d $pkgdir/usr
- cp -a _install/* $pkgdir/usr
- gendesk -f -n --pkgname $pkgname --pkgdesc "$pkgdesc" --name wxFormBuilder
- install -Dm 644 $srcdir/${gitname}/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
- install -Dm 644 $pkgdir/usr/share/wxformbuilder/resources/icons/logo.png $pkgdir/usr/share/pixmaps/$pkgname.png
+ cd "${srcdir}/${_gitname}"
+ DESTDIR="${pkgdir}" ninja -C _build install
+ mkdir -p "${pkgdir}/usr/share/mime/packages/"
+ cp -r "install/linux/data/gnome/usr/share" "${pkgdir}/usr"
+ install -m644 "install/linux/debian/wxformbuilder.sharedmimeinfo" "${pkgdir}/usr/share/mime/packages/wxformbuilder.xml"
}