blob: 2d0479e60b0495516984292db66b68caeee3b8eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Co-Maintainer: Solomon Choina <shlomochoina@gmail.com>
_pkgbase=gplugin
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://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() {
cd "$srcdir/$_pkgbase"
hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}'
}
build() {
arch-meson gplugin build -Dgtk4=enabled
meson compile -C build
}
_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_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"
}
|