diff options
-rw-r--r-- | .SRCINFO | 31 | ||||
-rw-r--r-- | PKGBUILD | 69 |
2 files changed, 61 insertions, 39 deletions
@@ -1,29 +1,38 @@ pkgbase = gplugin-hg pkgdesc = GObject based library that implements a reusable plugin system - pkgver = 993.307728b2f727 + pkgver = 2020.7027845d098d pkgrel = 1 - url = https://guifications.org/ + url = https://keep.imfreedom.org/gplugin/gplugin/ arch = i686 arch = x86_64 arch = armv7h - license = GPL + license = LGPL-2.0-or-later makedepends = mercurial - makedepends = cmake + makedepends = meson makedepends = gobject-introspection makedepends = gtk3 + makedepends = perl-glib-object-introspection makedepends = python-gobject makedepends = lua-lgi makedepends = libxslt makedepends = help2man + makedepends = vala + makedepends = gi-docgen + makedepends = gtk4 + source = gplugin::hg+https://keep.imfreedom.org/gplugin/gplugin#branch=default + sha256sums = SKIP + +pkgname = gplugin-hg depends = glib2 - depends = gobject-introspection-runtime + depends = gtk4 + depends = lua optdepends = gtk3: for GTK+ support optdepends = python-gobject: for Python support - optdepends = lua-lgi: for Lua support - provides = gplugin=0.0.23 + optdepends = lua53-lgi: for Lua support + optdepends = glib-perl: for perl support conflicts = gplugin - source = gplugin::hg+https://bitbucket.org/gplugin/main#branch=develop - sha256sums = SKIP - -pkgname = gplugin-hg +pkgname = gplugin-docs-hg + pkgdesc = GObject based library that implements a reusable plugin system (documentation) + depends = + conflicts = gplugin-docs @@ -1,22 +1,17 @@ # Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> - +# Co-Maintainer: Solomon Choina <shlomochoina@gmail.com> _pkgbase=gplugin -pkgname="$_pkgbase-hg" -pkgver=993.307728b2f727 -pkgrel=1 +pkgbase="$_pkgbase-hg" +pkgname=("$_pkgbase-hg" "$_pkgbase-docs-hg") +pkgver=2020.7027845d098d pkgdesc="GObject based library that implements a reusable plugin system" +pkgrel=1 arch=('i686' 'x86_64' 'armv7h') -url="https://guifications.org/" -license=('GPL') -depends=('glib2' 'gobject-introspection-runtime') -makedepends=('mercurial' 'cmake' 'gobject-introspection' 'gtk3' - 'python-gobject' 'lua-lgi' 'libxslt' 'help2man') -optdepends=('gtk3: for GTK+ support' - 'python-gobject: for Python support' - 'lua-lgi: for Lua support') -provides=("$_pkgbase=0.0.23") -conflicts=("$_pkgbase") -source=("$_pkgbase::hg+https://bitbucket.org/gplugin/main#branch=develop") +url="https://keep.imfreedom.org/gplugin/gplugin/" +license=('LGPL-2.0-or-later') +makedepends=('mercurial' 'meson' 'gobject-introspection' 'gtk3' 'perl-glib-object-introspection' + 'python-gobject' 'lua-lgi' 'libxslt' 'help2man' 'vala' 'gi-docgen' 'gtk4') +source=("$_pkgbase::hg+https://keep.imfreedom.org/gplugin/gplugin#branch=default") sha256sums=('SKIP') pkgver() { @@ -25,21 +20,39 @@ pkgver() { hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}' } -prepare() { - mkdir -p "$srcdir/$_pkgbase/build" - cd "$srcdir/$_pkgbase/build" - cmake .. \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_LIBDIR=lib +build() { + arch-meson gplugin build -Dgtk4=enabled + meson compile -C build } -build() { - cd "$srcdir/$_pkgbase/build" - make +_pick() { + local p="$1" f d; shift + for f; do + d="$srcdir/$p/${f#$pkgdir/}" + mkdir -p "$(dirname "$d")" + mv "$f" "$d" + rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")" + done } -package() { - cd "$srcdir/$_pkgbase/build" - make DESTDIR="$pkgdir/" install +package_gplugin-hg() { + depends=('glib2' 'gtk4' 'lua') + optdepends=('gtk3: for GTK+ support' + 'python-gobject: for Python support' + 'lua53-lgi: for Lua support' + 'glib-perl: for perl support') + conflicts=('gplugin') + + DESTDIR="$pkgdir" ninja -C build install + + cd "$pkgdir" + _pick docs usr/share/doc +} + +package_gplugin-docs-hg() { +pkgdesc+=" (documentation)" + depends=() + conflicts=(gplugin-docs) + + mv docs/* "$pkgdir" } |