blob: 5ab2289d2ee4e100ee30cb549f9c224c2c57630e (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
# Contributor: Janosch Dobler <janosch.dobler AT gmx DOT de>
pkgbase=libgtkflow-git
pkgname=('libgflow-git' 'libgtkflow3-git' 'libgtkflow4-git')
pkgver=r497.c276040
pkgrel=1
arch=('x86_64' 'armv7h' 'aarch64')
url="https://notabug.org/grindhold/libgtkflow"
license=('GPL3')
makedepends=('git' 'meson' 'vala' 'gobject-introspection' 'gtk3' 'gtk4')
optdepends=('python-gobject: usage from python'
'lua-lgi: usage from lua')
source=("git+$url.git")
md5sums=('SKIP')
pkgver() {
cd ${pkgbase%-*}
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
mkdir -p build && cd build
# valadoc can be enabled back once it stops putting its files in /tmp,
# see https://notabug.org/grindhold/libgtkflow/issues/45
arch-meson ../${pkgbase%-*} -Denable_valadoc=false
ninja
DESTDIR=../fake-install ninja install
}
package_libgflow-git() {
depends=('glib2')
provides=('libgflow')
conflicts=('libgflow')
_name=gflow
_title=GFlow
_version=1.0
cd fake-install
install -Dm644 usr/include/$_name-$_version/$_name-$_version.h "$pkgdir"/usr/include/$_name-$_version/$_name-$_version.h
install -Dm755 usr/lib/lib$_name-$_version.so "$pkgdir"/usr/lib/lib$_name-$_version.so
install -Dm644 usr/lib/pkgconfig/$_name-$_version.pc "$pkgdir"/usr/lib/pkgconfig/$_name-$_version.pc
install -Dm644 usr/lib/girepository-1.0/$_title-$_version.typelib "$pkgdir"/usr/lib/girepository-1.0/$_title-$_version.typelib
install -Dm644 usr/share/gir-1.0/$_title-$_version.gir "$pkgdir"/usr/share/gir-1.0/$_title-$_version.gir
install -Dm644 usr/share/vala/vapi/$_name-$_version.deps "$pkgdir"/usr/share/vala/vapi/$_name-$_version.deps
install -Dm644 usr/share/vala/vapi/$_name-$_version.vapi "$pkgdir"/usr/share/vala/vapi/$_name-$_version.vapi
}
package_libgtkflow3-git() {
pkgdesc="Flowgraphs for GTKĀ 3"
depends=('libgflow-git' 'gtk3')
provides=('libgtkflow' 'libgtkflow-git' 'libgtkflow3')
conflicts=('libgtkflow' 'libgtkflow-git' 'libgtkflow3')
replaces=('libgtkflow-git')
_name=gtkflow3
_title=GtkFlow3
_version=1.0
cd fake-install
install -Dm644 usr/include/$_name-$_version/$_name-$_version.h "$pkgdir"/usr/include/$_name-$_version/$_name-$_version.h
install -Dm755 usr/lib/lib$_name-$_version.so "$pkgdir"/usr/lib/lib$_name-$_version.so
install -Dm644 usr/lib/pkgconfig/$_name-$_version.pc "$pkgdir"/usr/lib/pkgconfig/$_name-$_version.pc
install -Dm644 usr/lib/girepository-1.0/$_title-$_version.typelib "$pkgdir"/usr/lib/girepository-1.0/$_title-$_version.typelib
install -Dm644 usr/share/gir-1.0/$_title-$_version.gir "$pkgdir"/usr/share/gir-1.0/$_title-$_version.gir
install -Dm644 usr/share/vala/vapi/$_name-$_version.deps "$pkgdir"/usr/share/vala/vapi/$_name-$_version.deps
install -Dm644 usr/share/vala/vapi/$_name-$_version.vapi "$pkgdir"/usr/share/vala/vapi/$_name-$_version.vapi
}
package_libgtkflow4-git() {
pkgdesc="Flowgraphs for GTKĀ 4"
depends=('libgflow-git' 'gtk4')
provides=('libgtkflow4')
conflicts=('libgtkflow4')
_name=gtkflow4
_title=GtkFlow4
_version=0.2
cd fake-install
install -Dm644 usr/include/$_name-$_version/$_name-$_version.h "$pkgdir"/usr/include/$_name-$_version/$_name-$_version.h
install -Dm755 usr/lib/lib$_name-$_version.so "$pkgdir"/usr/lib/lib$_name-$_version.so
install -Dm644 usr/lib/pkgconfig/$_name-$_version.pc "$pkgdir"/usr/lib/pkgconfig/$_name-$_version.pc
install -Dm644 usr/lib/girepository-1.0/$_title-$_version.typelib "$pkgdir"/usr/lib/girepository-1.0/$_title-$_version.typelib
install -Dm644 usr/share/gir-1.0/$_title-$_version.gir "$pkgdir"/usr/share/gir-1.0/$_title-$_version.gir
install -Dm644 usr/share/vala/vapi/$_name-$_version.deps "$pkgdir"/usr/share/vala/vapi/$_name-$_version.deps
install -Dm644 usr/share/vala/vapi/$_name-$_version.vapi "$pkgdir"/usr/share/vala/vapi/$_name-$_version.vapi
}
# vim:set ts=2 sw=2 et:
|