gplugin/gplugin

dd84d241b885
Merged in bugfix/mingw-build-fixin (pull request #33)

Bugfix/mingw build fixin

Approved-by: Elliott Sales de Andrade
--- a/convey.yml Tue Aug 27 01:56:02 2019 +0000
+++ b/convey.yml Mon Sep 30 03:46:51 2019 +0000
@@ -21,6 +21,8 @@
- elementary-juno-amd64
- fedora-29-amd64
- fedora-30-amd64
+ - mingw-w64-i686
+ - mingw-w64-x86_64
- opensuse-tumbleweed-amd64
- pvs-studio
- scanbuild
@@ -165,6 +167,15 @@
- tasks: [logout]
run: always
+ mingw-w64-i686:
+ environment: [DISTRO=mingw, VERSION=w64, ARCH=i686, PKGBUILD_DIR=mingw-cross]
+ stages:
+ - tasks: [import, build, export]
+ mingw-w64-x86_64:
+ environment: [DISTRO=mingw, VERSION=w64, ARCH=x86_64, PKGBUILD_DIR=mingw-cross]
+ stages:
+ - tasks: [import, build, export]
+
opensuse-tumbleweed-amd64:
environment: [DISTRO=opensuse, VERSION=tumbleweed]
stages:
--- a/gplugin/tests/dynamic-type/meson.build Tue Aug 27 01:56:02 2019 +0000
+++ b/gplugin/tests/dynamic-type/meson.build Mon Sep 30 03:46:51 2019 +0000
@@ -1,3 +1,5 @@
+if host_machine.system() != 'windows'
+
dynamic_type_provider = shared_library('dynamic-type-provider',
'dynamic-type-provider.c',
name_prefix : '',
@@ -6,3 +8,5 @@
shared_module('dynamic-type-user', 'dynamic-type-user.c',
name_prefix : '',
dependencies : [gplugin_dep, GLIB])
+
+endif
--- a/gplugin/tests/unresolved-symbol/meson.build Tue Aug 27 01:56:02 2019 +0000
+++ b/gplugin/tests/unresolved-symbol/meson.build Mon Sep 30 03:46:51 2019 +0000
@@ -1,3 +1,5 @@
+if host_machine.system() != 'windows'
+
if compiler.get_id() == 'gcc'
link_args = '-Wl,--warn-unresolved-symbols'
else
@@ -8,3 +10,5 @@
name_prefix : '',
link_args : link_args,
dependencies : [gplugin_dep, GLIB])
+
+endif
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/packaging/mingw-cross/PKGBUILD Mon Sep 30 03:46:51 2019 +0000
@@ -0,0 +1,46 @@
+_realname=gplugin
+pkgbase=mingw-w64-${_realname}-hg
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}-hg"
+provides=(${MINGW_PACKAGE_PREFIX}-${_realname})
+conflicts=(${MINGW_PACKAGE_PREFIX}-${_realname})
+pkgver=hg
+pkgrel=1
+pkgdesc="GObject based plugin library"
+arch=('any')
+url="https://bitbucket.org/gplugin/gplugin/"
+license=('LGPL2+')
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config")
+depends=("${MINGW_PACKAGE_PREFIX}-glib2"
+ "${MINGW_PACKAGE_PREFIX}-gtk3")
+
+options=(!libtool strip staticlibs)
+
+pkgver() {
+ printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+}
+
+build() {
+ meson \
+ --buildtype plain \
+ --prefix=/${MINGW_PACKAGE_PREFIX} \
+ --cross-file=${MINGW_PACKAGE_PREFIX}.txt \
+ -Ddoc=false\
+ -Dlua=false \
+ -Dpython=false \
+ -Dgobject-introspection=false \
+ -Dvapi=false \
+ -Dhelp2man=false \
+ ../
+
+ ninja
+}
+
+package() {
+ DESTDIR="${pkgdir}" ninja install
+
+ set -x
+ install -Dm644 "../COPYING" "${pkgdir}/${MINGW_PACKAGE_PREFIX}/share/licenses/${_realname}/COPYING"
+ set +x
+}
+
+