blob: a5e99a66359a5937b515ae140a6047c6311efdb9 (
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
|
# Maintainer: Solomon Choina <shlomochoina@gmail.com>
_pkgbase=xeme
pkgbase=xeme-hg
pkgname=("$_pkgbase-hg" "$_pkgbase-docs-hg")
pkgver=42.ad3533723a57
pkgrel=1
pkgdesc="A high level XMPP parsing library based on GObjects."
arch=('i686' 'x86_64' 'armv7h')
url="https://keep.imfreedom.org/birb/birb/"
license=('LGPL-2.1-or-later')
depends=('glib2')
makedepends=('mercurial' 'meson' 'help2man' 'vala' 'gi-docgen' 'gobject-introspection' 'birb-hg')
source=("hg+https://keep.imfreedom.org/xeme/xeme#branch=default")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgbase"
hg identify -ni | awk 'BEGIN{OFS=".";} {print $2,$1}'
}
_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
}
build() {
arch-meson xeme build
ninja -C build
}
package_xeme-hg() {
depends+=(birb-hg)
DESTDIR="$pkgdir" ninja -C build install
cd $pkgdir
_pick docs usr/share/doc
}
package_xeme-docs-hg() {
pkgdesc+=" (documentation)"
depends=()
mv docs/* "$pkgdir"
}
|