blob: 20a2c76c7ca586d70de5d0ed6be52bf34b9849ae (
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
# Maintainer:
# Contributor: Pellegrino Prevete (tallero) <pellegrinoprevete@gmail.com>
_pkgbase="cheese"
pkgbase="$_pkgbase-git"
pkgname=(
cheese-git
libcheese-git
)
pkgver=44.1.r3.ga7af338
pkgrel=3
pkgdesc="Take photos and videos with your webcam, with fun graphical effects"
url="https://gitlab.gnome.org/GNOME/cheese"
license=('GPL-2.0-or-later')
arch=('x86_64')
depends=(
clutter-gtk
gnome-desktop
gstreamer
gtk3
libcanberra
)
makedepends=(
appstream-glib
clutter-gst
git
glib2-devel
gobject-introspection
gst-plugins-bad
meson
vala
yelp-tools
)
checkdepends=(xorg-server-xvfb)
_pkgsrc="$_pkgbase"
source=("git+https://gitlab.gnome.org/GNOME/cheese.git")
sha256sums=('SKIP')
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
CFLAGS+=" -Wno-error=incompatible-pointer-types"
local meson_options=(
-D tests=false
)
arch-meson "$_pkgsrc" build "${meson_options[@]}"
meson compile -C build
}
check() (
export GSETTINGS_SCHEMA_DIR="$srcdir/cheese/data"
glib-compile-schemas "$GSETTINGS_SCHEMA_DIR"
dbus-run-session xvfb-run -s '-nolisten local' \
meson test -C build --print-errorlogs
)
_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_cheese-git() {
depends+=("libcheese-git=$pkgver-$pkgrel")
provides=("cheese")
conflicts=("cheese")
meson install -C build --destdir "$pkgdir"
cd "$pkgdir"
_pick libs usr/include
_pick libs usr/lib/{girepository-1.0,libcheese*,pkgconfig}
_pick libs usr/share/{gir-1.0,glib-2.0/schemas,gtk-doc}
}
package_libcheese-git() {
pkgdesc="Webcam widget for Clutter and GTK"
depends=(
clutter
clutter-gst
clutter-gtk
dconf
gdk-pixbuf2
glib2
gnome-video-effects
gst-plugins-bad-libs
gst-plugins-base-libs
gstreamer
gtk3
libcanberra
)
provides=(
libcheese
libcheese{,-gtk}.so
)
conflicts=(libcheese)
mv libs/* "$pkgdir"
}
|