[arch-commits] Commit in gambas3/trunk (PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Fri Jun 18 10:05:52 UTC 2021


    Date: Friday, June 18, 2021 @ 10:05:52
  Author: lcarlier
Revision: 965149

upgpkg: gambas3 3.16.1-1: upstream update 3.16.1

Modified:
  gambas3/trunk/PKGBUILD

----------+
 PKGBUILD |  807 +++++++++++++++++--------------------------------------------
 1 file changed, 227 insertions(+), 580 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-06-18 10:04:23 UTC (rev 965148)
+++ PKGBUILD	2021-06-18 10:05:52 UTC (rev 965149)
@@ -15,7 +15,7 @@
          'gambas3-gb-map' 'gambas3-gb-markdown' 'gambas3-gb-media-form' 'gambas3-gb-media' 'gambas3-gb-memcached' 'gambas3-gb-mime' 'gambas3-gb-mysql'
          'gambas3-gb-ncurses' 'gambas3-gb-net-curl' 'gambas3-gb-net-pop3' 'gambas3-gb-net-smtp' 'gambas3-gb-net'
          'gambas3-gb-openal' 'gambas3-gb-opengl-glu' 'gambas3-gb-opengl-glsl' 'gambas3-gb-opengl-sge' 'gambas3-gb-opengl' 'gambas3-gb-option'
-         'gambas3-gb-pcre' 'gambas3-gb-pdf' 'gambas3-gb-poppler'
+         'gambas3-gb-pcre' 'gambas3-gb-poppler'
          'gambas3-gb-qt5-opengl' 'gambas3-gb-qt5-webkit' 'gambas3-gb-qt5'
          'gambas3-gb-openssl'
          'gambas3-gb-report'
@@ -25,9 +25,9 @@
          'gambas3-gb-v4l' 'gambas3-gb-vb'
          'gambas3-gb-xml-html' 'gambas3-gb-xml-rpc' 'gambas3-gb-xml-xslt' 'gambas3-gb-xml'
          'gambas3-gb-web-feed' 'gambas3-gb-web-form' 'gambas3-gb-web-gui' 'gambas3-gb-web'
-         'gambas3-runtime' 'gambas3-devel' 'gambas3-ide' 'gambas3-script')
-pkgver=3.15.2
-pkgrel=11
+         'gambas3-runtime' 'gambas3-dev-tools' 'gambas3-ide' 'gambas3-script')
+pkgver=3.16.1
+pkgrel=1
 pkgdesc="A free development environment based on a Basic interpreter."
 arch=('x86_64')
 url="http://gambas.sourceforge.net/"
@@ -34,37 +34,19 @@
 license=('GPL2')
 groups=('gambas3')
 makedepends=('intltool' 'postgresql' 'libffi' 'bzip2' 'glib2' 'v4l-utils'
-         'zlib' 'mesa' 'glew' 'xdg-utils' 'imlib2' 'gdk-pixbuf2' 'gtk3'
+         'zlib' 'mesa' 'glew' 'xdg-utils' 'imlib2' 'gdk-pixbuf2' 'gtk3' 'webkit2gtk'
          'postgresql-libs' 'mariadb-libs' 'unixodbc' 'sqlite' 'librsvg'
          'curl' 'poppler-glib' 'sdl_mixer' 'sdl_ttf' 'sdl2' 'sdl2_mixer' 'sdl2_image' 'sdl2_ttf' 'libxtst'
-         'pcre' 'qt5-webkit' 'qt5-x11extras' 'qt5-svg' 'libxcursor' 'libsm' 'dbus' 'libxml2'
+         'pcre' 'qt5-webkit' 'qt5-webengine' 'qt5-x11extras' 'qt5-svg' 'libxcursor' 'libsm' 'dbus' 'libxml2'
          'libxslt' 'libgnome-keyring' 'gsl' 'gst-plugins-base-libs' 'alure' 'ncurses'
          'gmime3' 'libxcrypt')
 options=('!emptydirs' 'libtool')
-source=("https://gitlab.com/gambas/gambas/-/archive/${pkgver}/gambas-${pkgver}.tar.bz2"
-        gambas-poppler-20.12.patch
-        gambas-poppler-21.06.patch)
-sha512sums=('c1ccc08f24380fcf74c83c4b88edb30461e4116e133b3ad9903ae0c4e67a2c2a4968c0ad482b505dd853c59001dff3b28207abce2fa841842b3f523c79c348c4'
-            '8f725fb68b5cc7e6d23943cbd3fef96ffb26eff3c961c0ac4d5ccfee456234ba2ff5f80388e1cd9f5dc1395a629f1da542fab5648bcc47e690d6ddb93d8fe8bd'
-            '580805ae153a7f35709382ba8bca8eece3cb82bc6028aa5b9439af4416313890338f809d92e6d39e7b4384b5fc3d52eb603b9e727f3c7723335472860f969978')
+source=("https://gitlab.com/gambas/gambas/-/archive/${pkgver}/gambas-${pkgver}.tar.bz2")
+sha512sums=('515183a00b946eb81c43ad1f27924d9ee1f3a0909f05066556ff594719344cb58ac01c546ca5b5ae239bcae4cd2df817cf6774d6904c4cf2204f25862d648972')
 
-create_dirs() {
-  install -dm755 ${pkgdir}/usr/lib/gambas3
-  install -dm755 ${pkgdir}/usr/share/gambas3/info/control
-}
-
 prepare() {
   cd ${srcdir}/gambas-${pkgver}
 
-  # remove reference to poppler-splash because poppler 20.12 does not
-  # include a .pc file for it; temporary until it gets fixed upstream
-  # (fixed by https://gitlab.com/gambas/gambas/-/commit/2dc81d0b9887)
-  patch -Np1 -i ../gambas-poppler-20.12.patch
-
-  # OutlineItem::close has been removed in poppler 21.06 as pointless
-  # https://gitlab.freedesktop.org/poppler/poppler/-/commit/8f9115bf4
-  patch -Np1 -i ../gambas-poppler-21.06.patch
-
   ./reconf-all
 }
 
@@ -71,10 +53,11 @@
 build() {
   cd ${srcdir}/gambas-${pkgver}
 
-  ./configure --prefix=/usr \
+  GAMBAS_CONFIG_FAILURE=1 ./configure --prefix=/usr \
     --disable-sqlite2 \
     --disable-qt4  \
-    --disable-gtk
+    --disable-gtk \
+    --disable-pdf
 
   make bindir=${pkgdir}/usr/bin
 
@@ -82,16 +65,22 @@
   make -j1 XDG_UTILS='' DESTDIR=${srcdir}/fakeinstall install
 }
 
+_install() {
+  local src f dir
+  for src; do
+    f="${src#fakeinstall/}"
+    dir="${pkgdir}/${f%/*}"
+    install -m755 -d "${dir}"
+    mv -v "${src}" "${dir}/"
+  done
+}
+
 package_gambas3-gb-args() {
   depends=('gambas3-runtime')
   pkgdesc="Command-line options analyzer component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.args.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.args.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.args.*
+  _install fakeinstall/usr/share/gambas3/info/gb.args.*
 }
 
 package_gambas3-gb-cairo() {
@@ -98,12 +87,8 @@
   depends=('gambas3-runtime' 'cairo')
   pkgdesc="Cairo component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.cairo.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.cairo.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.cairo.* ${pkgdir}/usr/lib/gambas3/
+  _install fakeinstall/usr/share/gambas3/info/gb.cairo.* ${pkgdir}/usr/share/gambas3/info/
 }
 
 package_gambas3-gb-chart() {
@@ -110,12 +95,8 @@
   depends=('gambas3-gb-form')
   pkgdesc="Chart component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.chart.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.chart.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.chart.*
+  _install fakeinstall/usr/share/gambas3/info/gb.chart.*
 }
 
 package_gambas3-gb-clipper() {
@@ -122,12 +103,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Polygon clipping component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.clipper.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.clipper.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.clipper.*
+  _install fakeinstall/usr/share/gambas3/info/gb.clipper.*
 }
 
 package_gambas3-gb-complex() {
@@ -134,25 +111,17 @@
   depends=('gambas3-runtime')
   pkgdesc="Complex numbers component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.complex.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.complex.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.complex.*
+  _install fakeinstall/usr/share/gambas3/info/gb.complex.*
 }
 
 package_gambas3-gb-compress() {
-  depends=('gambas3-runtime' 'bzip2' 'zlib')
-  provides=('gambas3-gb-compress-bzlib2' 'gambas3-gb-compress-zlib')
+  depends=('gambas3-runtime' 'bzip2' 'zlib' 'zstd')
+  provides=('gambas3-gb-compress-bzlib2' 'gambas3-gb-compress-zlib' 'gambas3-gb-compress-zstd')
   pkgdesc="Compression support component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.compress.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.compress.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.compress.*
+  _install fakeinstall/usr/share/gambas3/info/gb.compress.*
 }
 
 package_gambas3-gb-crypt() {
@@ -159,12 +128,8 @@
   depends=('gambas3-runtime' 'libxcrypt')
   pkgdesc="MD5/DES crypting component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.crypt.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.crypt.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.crypt.*
+  _install fakeinstall/usr/share/gambas3/info/gb.crypt.*
 }
 
 package_gambas3-gb-data() {
@@ -171,12 +136,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Data containers component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.data.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.data.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.data.*
+  _install fakeinstall/usr/share/gambas3/info/gb.data.*
 }
 
 package_gambas3-gb-db-form() {
@@ -183,14 +144,9 @@
   depends=('gambas3-gb-db' 'gambas3-gb-form')
   pkgdesc="Database form component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.db.form
-
-  mv -v usr/lib/gambas3/gb.db.form.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.db.form.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.db.form/* ${pkgdir}/usr/share/gambas3/control/gb.db.form
+  _install fakeinstall/usr/lib/gambas3/gb.db.form.*
+  _install fakeinstall/usr/share/gambas3/info/gb.db.form.*
+  _install fakeinstall/usr/share/gambas3/control/gb.db.form/*
 }
 
 package_gambas3-gb-db-mysql() {
@@ -197,12 +153,8 @@
   depends=('gambas3-gb-db' 'mariadb-libs')
   pkgdesc="MySQL database access component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.db.mysql.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.db.mysql.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.db.mysql.*
+  _install fakeinstall/usr/share/gambas3/info/gb.db.mysql.*
 }
 
 package_gambas3-gb-db-odbc() {
@@ -209,12 +161,8 @@
   depends=('gambas3-gb-db' 'unixodbc')
   pkgdesc="ODBC database access component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.db.odbc.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.db.odbc.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.db.odbc.*
+  _install fakeinstall/usr/share/gambas3/info/gb.db.odbc.*
 }
 
 package_gambas3-gb-db-postgresql() {
@@ -221,12 +169,8 @@
   depends=('gambas3-gb-db' 'postgresql-libs')
   pkgdesc="PostgreSQL database access component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.db.postgresql.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.db.postgresql.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.db.postgresql.*
+  _install fakeinstall/usr/share/gambas3/info/gb.db.postgresql.*
 }
 
 package_gambas3-gb-db-sqlite3() {
@@ -233,12 +177,8 @@
   depends=('gambas3-gb-db' 'sqlite' 'gcc-libs')
   pkgdesc="Sqlite3 database access component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.db.sqlite3.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.db.sqlite3.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.db.sqlite3.*
+  _install fakeinstall/usr/share/gambas3/info/gb.db.sqlite3.*
 }
 
 package_gambas3-gb-db() {
@@ -245,12 +185,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Database access component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.db.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.db.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.db.*
+  _install fakeinstall/usr/share/gambas3/info/gb.db.*
 }
 
 package_gambas3-gb-dbus() {
@@ -258,12 +194,8 @@
   provides=('gambas3-gb-dbus-trayicon')
   pkgdesc="DBUS component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.dbus.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.dbus.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.dbus.*
+  _install fakeinstall/usr/share/gambas3/info/gb.dbus.*
 }
 
 package_gambas3-gb-desktop-gnome() {
@@ -270,12 +202,8 @@
   depends=('libgnome-keyring')
   pkgdesc="Desktop component for Gnome"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.desktop.gnome.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.desktop.gnome.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.desktop.gnome.*
+  _install fakeinstall/usr/share/gambas3/info/gb.desktop.gnome.*
 }
 
 package_gambas3-gb-desktop-x11() {
@@ -282,12 +210,8 @@
   depends=('libsm' 'libxtst')
   pkgdesc="X-Window library support component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.desktop.x11.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.desktop.x11.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.desktop.x11.*
+  _install fakeinstall/usr/share/gambas3/info/gb.desktop.x11.*
 }
 
 package_gambas3-gb-desktop() {
@@ -294,14 +218,9 @@
   depends=('perl' 'gambas3-gb-image')
   pkgdesc="Desktop component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.desktop
-
-  mv -v usr/lib/gambas3/gb.desktop.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.desktop.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.desktop/* ${pkgdir}/usr/share/gambas3/control/gb.desktop
+  _install fakeinstall/usr/lib/gambas3/gb.desktop.*
+  _install fakeinstall/usr/share/gambas3/info/gb.desktop.*
+  _install fakeinstall/usr/share/gambas3/control/gb.desktop/*
 }
 
 package_gambas3-gb-eval-highlight() {
@@ -308,12 +227,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Expression evaluator highlight component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.eval.highlight.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.eval.highlight.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.eval.highlight.*
+  _install fakeinstall/usr/share/gambas3/info/gb.eval.highlight.*
 }
 
 package_gambas3-gb-form-dialog() {
@@ -320,12 +235,8 @@
   depends=('gambas3-gb-form')
   pkgdesc="Form dialog component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.form.dialog.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.form.dialog.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.form.dialog.*
+  _install fakeinstall/usr/share/gambas3/info/gb.form.dialog.*
 }
 
 package_gambas3-gb-form-mdi() {
@@ -332,14 +243,9 @@
   depends=('gambas3-gb-form')
   pkgdesc="Form MDI component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.form.midi
-
-  mv -v usr/lib/gambas3/gb.form.mdi.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.form.mdi.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.form.mdi/* ${pkgdir}/usr/share/gambas3/control/gb.form.midi
+  _install fakeinstall/usr/lib/gambas3/gb.form.mdi.*
+  _install fakeinstall/usr/share/gambas3/info/gb.form.mdi.*
+  _install fakeinstall/usr/share/gambas3/control/gb.form.mdi/*
 }
 
 package_gambas3-gb-form-stock() {
@@ -346,12 +252,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Default stock icons component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.form.stock.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.form.stock.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.form.stock.*
+  _install fakeinstall/usr/share/gambas3/info/gb.form.stock.*
 }
 
 package_gambas3-gb-form-editor() {
@@ -358,38 +260,25 @@
   depends=('gambas3-gb-eval-highlight')
   pkgdesc="Editor component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.form.editor.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.form.editor.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.form.editor.*
+  _install fakeinstall/usr/share/gambas3/info/gb.form.editor.*
 }
 
 package_gambas3-gb-form-terminal() {
-  depends=('perl' 'gambas3-runtime')
+  depends=('perl' 'gambas3-runtime' 'gambas3-gui')
   pkgdesc="Terminal component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.form.terminal.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.form.terminal.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.form.terminal.*
+  _install fakeinstall/usr/share/gambas3/info/gb.form.terminal.*
 }
 
 package_gambas3-gb-form() {
-  depends=('gambas3-runtime')
+  depends=('gambas3-runtime' 'gambas3-gui')
   pkgdesc="Form component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.form
-
-  mv -v usr/lib/gambas3/gb.form.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.form.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.form/* ${pkgdir}/usr/share/gambas3/control/gb.form
+  _install fakeinstall/usr/lib/gambas3/gb.form.*
+  _install fakeinstall/usr/share/gambas3/info/gb.form.*
+  _install fakeinstall/usr/share/gambas3/control/gb.form/*
 }
 
 package_gambas3-gb-gmp() {
@@ -396,12 +285,8 @@
   depends=('gambas3-runtime' 'gmp')
   pkgdesc="Arbitrary precision arithmetic component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.gmp.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.gmp.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.gmp.*
+  _install fakeinstall/usr/share/gambas3/info/gb.gmp.*
 }
 
 package_gambas3-gb-gsl() {
@@ -408,24 +293,17 @@
   depends=('gambas3-runtime' 'gsl')
   pkgdesc="The GNU Scientific Library component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.gsl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.gsl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.gsl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.gsl.*
 }
 
 package_gambas3-gb-gtk3() {
   depends=('gambas3-gb-image' 'gtk3')
   pkgdesc="GTK3 toolkit component"
+  provides=('gambas3-gui')
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.gtk3.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.gtk3.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.gtk3.*
+  _install fakeinstall/usr/share/gambas3/info/gb.gtk3.*
 }
 
 package_gambas3-gb-httpd() {
@@ -432,12 +310,8 @@
   depends=('gambas3-runtime' 'libxcrypt')
   pkgdesc="Embedded HTTP server for the interpreter"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.httpd.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.httpd.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.httpd.*
+  _install fakeinstall/usr/share/gambas3/info/gb.httpd.*
 }
 
 package_gambas3-gb-image-effect() {
@@ -444,12 +318,8 @@
   depends=('gambas3-gb-image' 'gcc-libs')
   pkgdesc="Image effect component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.image.effect.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.image.effect.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.image.effect.*
+  _install fakeinstall/usr/share/gambas3/info/gb.image.effect.*
 }
 
 package_gambas3-gb-image-imlib() {
@@ -456,12 +326,8 @@
   depends=('gambas3-gb-image' 'imlib2')
   pkgdesc="Imlib component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.image.imlib.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.image.imlib.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.image.imlib.*
+  _install fakeinstall/usr/share/gambas3/info/gb.image.imlib.*
 }
 
 package_gambas3-gb-image-io() {
@@ -468,12 +334,8 @@
   depends=('gambas3-gb-image' 'gdk-pixbuf2')
   pkgdesc="Input/Output image component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.image.io.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.image.io.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.image.io.*
+  _install fakeinstall/usr/share/gambas3/info/gb.image.io.*
 }
 
 package_gambas3-gb-image() {
@@ -480,12 +342,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Image component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.image.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.image.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.image.*
+  _install fakeinstall/usr/share/gambas3/info/gb.image.*
 }
 
 package_gambas3-gb-inotify() {
@@ -492,12 +350,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Filesystem events monitoring component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.inotify.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.inotify.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.inotify.*
+  _install fakeinstall/usr/share/gambas3/info/gb.inotify.*
 }
 
 package_gambas3-gb-libxml() {
@@ -504,12 +358,8 @@
   depends=('gambas3-runtime' 'libxml2')
   pkgdesc="libxml2 component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.libxml.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.libxml.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.libxml.*
+  _install fakeinstall/usr/share/gambas3/info/gb.libxml.*
 }
 
 package_gambas3-gb-logging() {
@@ -516,12 +366,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Flexible log message handling component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.logging.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.logging.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.logging.*
+  _install fakeinstall/usr/share/gambas3/info/gb.logging.*
 }
 
 package_gambas3-gb-map() {
@@ -528,14 +374,9 @@
   depends=('gambas3-gb-image-io' 'gambas3-gb-form')
   pkgdesc="Display maps component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.map
-
-  mv -v usr/lib/gambas3/gb.map.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.map.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.map/* ${pkgdir}/usr/share/gambas3/control/gb.map
+  _install fakeinstall/usr/lib/gambas3/gb.map.*
+  _install fakeinstall/usr/share/gambas3/info/gb.map.*
+  _install fakeinstall/usr/share/gambas3/control/gb.map/*
 }
 
 package_gambas3-gb-markdown() {
@@ -542,26 +383,17 @@
   depends=('gambas3-gb-image-io' 'gambas3-gb-form')
   pkgdesc="Convert the Gambas markdown syntax to HTML"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.markdown.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.markdown.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.markdown.*
+  _install fakeinstall/usr/share/gambas3/info/gb.markdown.*
 }
 
 package_gambas3-gb-media-form() {
-  depends=('gambas3-runtime' 'gambas3-gb-media')
+  depends=('gambas3-runtime' 'gambas3-gb-media' 'gambas3-gui')
   pkgdesc="Media player control component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.media.form
-
-  mv -v usr/lib/gambas3/gb.media.form* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.media.form* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.media.form/* ${pkgdir}/usr/share/gambas3/control/gb.media.form
+  _install fakeinstall/usr/lib/gambas3/gb.media.form*
+  _install fakeinstall/usr/share/gambas3/info/gb.media.form*
+  _install fakeinstall/usr/share/gambas3/control/gb.media.form/*
 }
 
 package_gambas3-gb-media() {
@@ -568,12 +400,8 @@
   depends=('gambas3-runtime' 'gst-plugins-base-libs')
   pkgdesc="Simplified interface to the GStreamer library component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.media.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.media.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.media.*
+  _install fakeinstall/usr/share/gambas3/info/gb.media.*
 }
 
 package_gambas3-gb-memcached() {
@@ -580,12 +408,8 @@
   depends=('gambas3-gb-net')
   pkgdesc="Memcached client component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.memcached.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.memcached.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.memcached.*
+  _install fakeinstall/usr/share/gambas3/info/gb.memcached.*
 }
 
 package_gambas3-gb-mime() {
@@ -592,12 +416,8 @@
   depends=('gambas3-runtime' 'gmime')
   pkgdesc="MIME message component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.mime.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.mime.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.mime.*
+  _install fakeinstall/usr/share/gambas3/info/gb.mime.*
 }
 
 package_gambas3-gb-mysql() {
@@ -604,12 +424,8 @@
   depends=('gambas3-runtime' 'gambas3-gb-db-mysql')
   pkgdesc="Mysql extra component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.mysql.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.mysql.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.mysql.*
+  _install fakeinstall/usr/share/gambas3/info/gb.mysql.*
 }
 
 package_gambas3-gb-ncurses() {
@@ -616,12 +432,8 @@
   depends=('gambas3-runtime' 'ncurses')
   pkgdesc="Ncurses component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.ncurses.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.ncurses.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.ncurses.*
+  _install fakeinstall/usr/share/gambas3/info/gb.ncurses.*
 }
 
 package_gambas3-gb-net-curl() {
@@ -628,12 +440,8 @@
   depends=('gambas3-gb-net' 'curl')
   pkgdesc="Curl component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.net.curl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.net.curl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.net.curl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.net.curl.*
 }
 
 package_gambas3-gb-net-pop3() {
@@ -640,14 +448,9 @@
   depends=('gambas3-gb-net' 'gambas3-gb-mime')
   pkgdesc="POP3 component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.net.pop3
-
-  mv -v usr/lib/gambas3/gb.net.pop3.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.net.pop3.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.net.pop3/* ${pkgdir}/usr/share/gambas3/control/gb.net.pop3
+  _install fakeinstall/usr/lib/gambas3/gb.net.pop3.*
+  _install fakeinstall/usr/share/gambas3/info/gb.net.pop3.*
+  _install fakeinstall/usr/share/gambas3/control/gb.net.pop3/*
 }
 
 package_gambas3-gb-net-smtp() {
@@ -654,14 +457,9 @@
   depends=('gambas3-runtime' 'glib2')
   pkgdesc="SMTP component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.net.smtp
-
-  mv -v usr/lib/gambas3/gb.net.smtp.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.net.smtp.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.net.smtp/* ${pkgdir}/usr/share/gambas3/control/gb.net.smtp
+  _install fakeinstall/usr/lib/gambas3/gb.net.smtp.*
+  _install fakeinstall/usr/share/gambas3/info/gb.net.smtp.*
+  _install fakeinstall/usr/share/gambas3/control/gb.net.smtp/*
 }
 
 package_gambas3-gb-net() {
@@ -668,12 +466,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Network component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.net.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.net.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.net.*
+  _install fakeinstall/usr/share/gambas3/info/gb.net.*
 }
 
 package_gambas3-gb-openal() {
@@ -680,12 +474,8 @@
   depends=('gambas3-runtime' 'alure')
   pkgdesc="OpenAL 3D audio component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.openal.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.openal.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.openal.*
+  _install fakeinstall/usr/share/gambas3/info/gb.openal.*
 }
 
 package_gambas3-gb-opengl-glu() {
@@ -692,12 +482,8 @@
   depends=('gambas3-gb-opengl')
   pkgdesc="GL Utility component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.opengl.glu.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.opengl.glu.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.opengl.glu.*
+  _install fakeinstall/usr/share/gambas3/info/gb.opengl.glu.*
 }
 
 package_gambas3-gb-opengl-glsl() {
@@ -704,12 +490,8 @@
   depends=('gambas3-gb-opengl')
   pkgdesc="GLSL component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.opengl.glsl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.opengl.glsl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.opengl.glsl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.opengl.glsl.*
 }
 
 package_gambas3-gb-opengl-sge() {
@@ -716,12 +498,8 @@
   depends=('gambas3-gb-opengl')
   pkgdesc="Simple OpenGL game engine component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.opengl.sge* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.opengl.sge* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.opengl.sge*
+  _install fakeinstall/usr/share/gambas3/info/gb.opengl.sge*
 }
 
 package_gambas3-gb-opengl() {
@@ -728,12 +506,8 @@
   depends=('gambas3-runtime' 'glew')
   pkgdesc="OpenGL component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.opengl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.opengl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.opengl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.opengl.*
 }
 
 package_gambas3-gb-openssl() {
@@ -740,12 +514,8 @@
   depends=('gambas3-runtime' 'openssl')
   pkgdesc="Openssl component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.openssl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.openssl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.openssl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.openssl.*
 }
 
 package_gambas3-gb-option() {
@@ -752,12 +522,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Getopt component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.option.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.option.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.option.*
+  _install fakeinstall/usr/share/gambas3/info/gb.option.*
 }
 
 package_gambas3-gb-pcre() {
@@ -764,36 +530,17 @@
   depends=('gambas3-runtime' 'pcre')
   pkgdesc="PCRE component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.pcre.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.pcre.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.pcre.*
+  _install fakeinstall/usr/share/gambas3/info/gb.pcre.*
 }
 
-package_gambas3-gb-pdf() {
-  depends=('gambas3-runtime' 'poppler')
-  pkgdesc="PDF component"
-
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.pdf.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.pdf.* ${pkgdir}/usr/share/gambas3/info/
-}
-
 package_gambas3-gb-poppler() {
   depends=('gambas3-runtime' 'poppler-glib')
+  replaces=('gambas3-gb-pdf')
   pkgdesc="PDF component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.poppler.* ${pkgdir}/usr/lib/gambas3/    
-  mv -v usr/share/gambas3/info/gb.poppler.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.poppler.*
+  _install fakeinstall/usr/share/gambas3/info/gb.poppler.*
 }
 
 package_gambas3-gb-qt5-opengl() {
@@ -800,12 +547,8 @@
   depends=('gambas3-gb-qt5' 'gambas3-gb-opengl')
   pkgdesc="Qt5 toolkit OpenGL component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.qt5.opengl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.qt5.opengl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.qt5.opengl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.qt5.opengl.*
 }
 
 package_gambas3-gb-qt5-webkit() {
@@ -812,24 +555,17 @@
   depends=('gambas3-gb-qt5' 'qt5-webkit')
   pkgdesc="Qt5 toolkit webkit component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.qt5.webkit.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.qt5.webkit.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.qt5.webkit.*
+  _install fakeinstall/usr/share/gambas3/info/gb.qt5.webkit.*
 }
 
 package_gambas3-gb-qt5() {
   depends=('gambas3-gb-image' 'qt5-base' 'qt5-svg' 'qt5-x11extras')
   pkgdesc="Qt5 toolkit component"
+  provides=('gambas3-gui')
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.qt5.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.qt5.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.qt5.*
+  _install fakeinstall/usr/share/gambas3/info/gb.qt5.*
 }
 
 package_gambas3-gb-report() {
@@ -837,15 +573,10 @@
   pkgdesc="Report component"
   provides=("gambas3-gb-report2=${pkgver}")
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-  install -dm755 ${pkgdir}/usr/share/gambas3/control/gb.report{,2}
-
-  mv -v usr/lib/gambas3/gb.report{,2}.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.report{,2}.* ${pkgdir}/usr/share/gambas3/info/
-  mv -v usr/share/gambas3/control/gb.report/* ${pkgdir}/usr/share/gambas3/control/gb.report
-  mv -v usr/share/gambas3/control/gb.report2/* ${pkgdir}/usr/share/gambas3/control/gb.report2
+  _install fakeinstall/usr/lib/gambas3/gb.report{,2}.*
+  _install fakeinstall/usr/share/gambas3/info/gb.report{,2}.*
+  _install fakeinstall/usr/share/gambas3/control/gb.report/*
+  _install fakeinstall/usr/share/gambas3/control/gb.report2/*
 }
 
 package_gambas3-gb-scanner() {
@@ -852,12 +583,8 @@
   depends=('gambas3-gb-image' 'gambas3-gb-settings' 'sane')
   pkgdesc="Scanimage frontend component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.scanner.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.scanner.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.scanner.*
+  _install fakeinstall/usr/share/gambas3/info/gb.scanner.*
 }
 
 package_gambas3-gb-sdl-sound() {
@@ -864,12 +591,8 @@
   depends=('gambas3-runtime' 'sdl_mixer')
   pkgdesc="SDL sound component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.sdl.sound.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.sdl.sound.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.sdl.sound.*
+  _install fakeinstall/usr/share/gambas3/info/gb.sdl.sound.*
 }
 
 package_gambas3-gb-sdl() {
@@ -876,12 +599,8 @@
   depends=('gambas3-gb-image-io' 'sdl_ttf' 'libxcursor' 'glew')
   pkgdesc="SDL component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.sdl.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.sdl.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.sdl.*
+  _install fakeinstall/usr/share/gambas3/info/gb.sdl.*
 }
 
 package_gambas3-gb-sdl2-audio() {
@@ -888,12 +607,8 @@
   depends=('gambas3-runtime' 'sdl2_mixer')
   pkgdesc="SDL2 audio component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.sdl2.audio.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.sdl2.audio.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.sdl2.audio.*
+  _install fakeinstall/usr/share/gambas3/info/gb.sdl2.audio.*
 }
 
 package_gambas3-gb-sdl2() {
@@ -900,12 +615,8 @@
   depends=('gambas3-gb-image-io' 'sdl2_ttf' 'sdl2_image' 'glew')
   pkgdesc="SDL2 component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.sdl2.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.sdl2.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.sdl2.*
+  _install fakeinstall/usr/share/gambas3/info/gb.sdl2.*
 }
 
 package_gambas3-gb-settings() {
@@ -912,12 +623,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Setting component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.settings.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.settings.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.settings.*
+  _install fakeinstall/usr/share/gambas3/info/gb.settings.*
 }
 
 package_gambas3-gb-signal() {
@@ -924,12 +631,8 @@
   depends=('gambas3-runtime')
   pkgdesc="POSIX Signals component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.signal.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.signal.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.signal.*
+  _install fakeinstall/usr/share/gambas3/info/gb.signal.*
 }
 
 package_gambas3-gb-term() {
@@ -937,12 +640,8 @@
   pkgdesc="Terminal management component"
   provides=("gambas3-gb-term-form=${pkgver}")
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.term.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.term.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.term.*
+  _install fakeinstall/usr/share/gambas3/info/gb.term.*
 }
 
 package_gambas3-gb-util-web() {
@@ -949,12 +648,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Miscellaneous web utility functions component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.util.web.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.util.web.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.util.web.*
+  _install fakeinstall/usr/share/gambas3/info/gb.util.web.*
 }
 
 package_gambas3-gb-util() {
@@ -961,12 +656,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Miscellaneous utility functions component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.util.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.util.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.util.*
+  _install fakeinstall/usr/share/gambas3/info/gb.util.*
 }
 
 package_gambas3-gb-v4l() {
@@ -973,12 +664,8 @@
   depends=('gambas3-runtime' 'v4l-utils' 'libjpeg' 'libpng')
   pkgdesc="Video4linux component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.v4l.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.v4l.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.v4l.*
+  _install fakeinstall/usr/share/gambas3/info/gb.v4l.*
 }
 
 package_gambas3-gb-vb() {
@@ -985,12 +672,8 @@
   depends=('gambas3-runtime')
   pkgdesc="Visual Basic transitional component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.vb.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.vb.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.vb.*
+  _install fakeinstall/usr/share/gambas3/info/gb.vb.*
 }
 
 package_gambas3-gb-web-feed() {
@@ -997,12 +680,8 @@
   depends=('gambas3-gb-xml')
   pkgdesc="Web feed parser and generator component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.web.feed.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.web.feed.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.web.feed.*
+  _install fakeinstall/usr/share/gambas3/info/gb.web.feed.*
 }
 
 package_gambas3-gb-web-form() {
@@ -1009,12 +688,8 @@
   depends=('gambas3-gb-web' 'gambas3-gb-util-web')
   pkgdesc="web form component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.web.form.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.web.form.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.web.form.*
+  _install fakeinstall/usr/share/gambas3/info/gb.web.form.*
 }
 
 package_gambas3-gb-web-gui() {
@@ -1021,12 +696,8 @@
   depends=('gambas3-gb-web' 'gambas3-gb-util-web' 'gambas3-gb-util' 'gambas3-gb-signal')
   pkgdesc="web gui component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.web.gui.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.web.gui.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.web.gui.*
+  _install fakeinstall/usr/share/gambas3/info/gb.web.gui.*
 }
 
 package_gambas3-gb-web() {
@@ -1033,12 +704,8 @@
   depends=('gambas3-runtime')
   pkgdesc="CGI component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.web.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.web.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.web.*
+  _install fakeinstall/usr/share/gambas3/info/gb.web.*
 }
 
 package_gambas3-gb-xml-html() {
@@ -1045,12 +712,8 @@
   depends=('gambas3-gb-xml')
   pkgdesc="HTML generator component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.xml.html.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.xml.html.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.xml.html.*
+  _install fakeinstall/usr/share/gambas3/info/gb.xml.html.*
 }
 
 package_gambas3-gb-xml-rpc() {
@@ -1057,12 +720,8 @@
   depends=('gambas3-gb-xml' 'gambas3-gb-net-curl')
   pkgdesc="XML-RPC component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.xml.rpc.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.xml.rpc.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.xml.rpc.*
+  _install fakeinstall/usr/share/gambas3/info/gb.xml.rpc.*
 }
 
 package_gambas3-gb-xml-xslt() {
@@ -1069,12 +728,8 @@
   depends=('gambas3-gb-xml' 'libxslt')
   pkgdesc="XML-XSLT component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.xml.xslt.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.xml.xslt.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.xml.xslt.*
+  _install fakeinstall/usr/share/gambas3/info/gb.xml.xslt.*
 }
 
 package_gambas3-gb-xml() {
@@ -1081,48 +736,38 @@
   depends=('gambas3-runtime' 'gcc-libs')
   pkgdesc="XML component"
 
-  cd ${srcdir}/fakeinstall
-
-  create_dirs
-
-  mv -v usr/lib/gambas3/gb.xml.* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/gb.xml.* ${pkgdir}/usr/share/gambas3/info/
+  _install fakeinstall/usr/lib/gambas3/gb.xml.*
+  _install fakeinstall/usr/share/gambas3/info/gb.xml.*
 }
 
 package_gambas3-runtime() {
   depends=('libffi' 'xdg-utils')
   pkgdesc="Runtime environment"
-  conflicts=('gambas3-gb-gui')
-  replaces=('gambas3-gb-gui')
-  provides=("gambas3-gb-gui=${pkgver}" 'gambas3-gb-jit')
+  provides=('gambas3-gb-jit')
 
-  cd ${srcdir}/fakeinstall
+  _install fakeinstall/usr/bin/gb{r,x}3
+  _install fakeinstall/usr/lib/gambas3/*
+  _install fakeinstall/usr/share/gambas3/info/*
+  _install fakeinstall/usr/share/man/man1/gb{r,x}3*
 
-  create_dirs
+  install -dm755 ${pkgdir}/usr/share/gambas3/{mime,icons}
 
-  install -dm755 ${pkgdir}/usr/bin
-  install -dm755 ${pkgdir}/usr/share/gambas3/{icons,mime}
-
-  mv -v usr/bin/gb{r,x}3 ${pkgdir}/usr/bin
-  mv -v usr/lib/gambas3/* ${pkgdir}/usr/lib/gambas3/
-  mv -v usr/share/gambas3/info/* ${pkgdir}/usr/share/gambas3/info/
   install -m644 ${srcdir}/gambas-${pkgver}/main/mime/* ${pkgdir}/usr/share/gambas3/mime/
   install -m644 ${pkgdir}/usr/share/gambas3/mime/application-x-gambas3.png ${pkgdir}/usr/share/gambas3/icons/
 }
 
-package_gambas3-devel() {
+package_gambas3-dev-tools() {
   depends=('gambas3-runtime')
   pkgdesc="Development environment"
+  conflicts=('gambas3-devel')
+  replaces=('gambas3-devel')
 
-  cd ${srcdir}/fakeinstall
-
-  install -dm755 ${pkgdir}/usr/bin
-
-  mv -v usr/bin/gb{a,c,i}3 ${pkgdir}/usr/bin
+  _install fakeinstall/usr/bin/gb{a,c,i,h}3*
+  _install fakeinstall/usr/share/man/man1/gb{a,c,i,h}3*
 }
 
 package_gambas3-ide() {
-  depends=('gambas3-devel' 'gambas3-gb-clipper' 'gambas3-gb-db-form' 'gambas3-gb-desktop' 'gambas3-gb-desktop-x11'
+  depends=('gambas3-dev-tools' 'gambas3-gb-clipper' 'gambas3-gb-db-form' 'gambas3-gb-desktop' 'gambas3-gb-desktop-x11'
            'gambas3-gb-eval-highlight' 'gambas3-gb-form-dialog' 'gambas3-gb-form-editor' 'gambas3-gb-form-stock'
            'gambas3-gb-markdown' 'gambas3-gb-settings' 'gambas3-gb-form-mdi' 'gambas3-gb-image-effect' 'gambas3-gb-qt5'
            'gambas3-gb-qt5-webkit' 'gambas3-gb-net-curl' 'gambas3-gb-form-terminal'  'gambas3-gb-signal'
@@ -1131,27 +776,29 @@
   conflicts=('gambas3-examples')
   replaces=('gambas3-examples')
 
-  cd ${srcdir}/fakeinstall
+  _install fakeinstall/usr/bin/gambas3*
+  _install fakeinstall/usr/share/appdata
+  _install fakeinstall/usr/share/metainfo
+  _install fakeinstall/usr/share/gambas3/template
+  _install fakeinstall/usr/share/man/man1/gambas3.1
 
-  install -dm755 ${pkgdir}/usr/{bin,share/{applications,gambas3,pixmaps}}
+  install -dm755 ${pkgdir}/usr/share/applications
+  install -dm755 ${pkgdir}/usr/share/pixmaps
 
-  mv -v usr/bin/gambas3* ${pkgdir}/usr/bin/
-  mv -v usr/share/appdata ${pkgdir}/usr/share/
-  mv -v usr/share/gambas3/template ${pkgdir}/usr/share/gambas3/
-
   install -m644 ${srcdir}/gambas-${pkgver}/app/desktop/gambas3.desktop ${pkgdir}/usr/share/applications/
   install -m644 ${srcdir}/gambas-${pkgver}/app/desktop/gambas3.png ${pkgdir}/usr/share/pixmaps/
 }
 
 package_gambas3-script() {
-  depends=('gambas3-devel')
+  depends=('gambas3-dev-tools')
   pkgdesc="Scripter and server programs support"
 
-  cd ${srcdir}/fakeinstall
+  _install fakeinstall/usr/bin/gb{s,w}3*
+  _install fakeinstall/usr/share/man/man1/gb{s,w}3*
 
-  install -dm755 ${pkgdir}/usr/bin
-  install -dm755 ${pkgdir}/usr/share/gambas3/mime
+  install -dm755 ${pkgdir}/usr/share/pixmaps
+  install -dm755 ${pkgdir}/usr/share/mime/packages
 
-  mv -v usr/bin/gb{s,w}3* ${pkgdir}/usr/bin/
-  install -m644 ${srcdir}/gambas-${pkgver}/app/mime/* ${pkgdir}/usr/share/gambas3/mime/
+  install -m644 ${srcdir}/gambas-${pkgver}/app/mime/*.png ${pkgdir}/usr/share/pixmaps
+  install -m644 ${srcdir}/gambas-${pkgver}/app/mime/*.xml ${pkgdir}/usr/share/mime/packages
 }



More information about the arch-commits mailing list