aboutsummaryrefslogtreecommitdiffstats
path: root/community/cheese/APKBUILD
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2020-09-04 19:56:08 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-09-05 00:08:29 +0200
commit7895760661fab6c6b8d0e02259e470d6ce9db5fb (patch)
treea8bbc0bc9b85f705d8a05fd8636167ae8c5a664b /community/cheese/APKBUILD
parent65870f1851bccf7fac59ab8761cc7544e400b3b3 (diff)
downloadaports-7895760661fab6c6b8d0e02259e470d6ce9db5fb.tar.gz
aports-7895760661fab6c6b8d0e02259e470d6ce9db5fb.tar.bz2
aports-7895760661fab6c6b8d0e02259e470d6ce9db5fb.tar.xz
community/cheese: split libs from GUI and modernize
Parts of GNOME depend on libs from Cheese, but cause the whole application to be installed as they are not split out. Not everyone might want the full application, so let's split out the non-GUI libs Also modernize the APKBUILD while we're touching it anyway
Diffstat (limited to 'community/cheese/APKBUILD')
-rw-r--r--community/cheese/APKBUILD46
1 files changed, 31 insertions, 15 deletions
diff --git a/community/cheese/APKBUILD b/community/cheese/APKBUILD
index fc6370dc77..b4b515a167 100644
--- a/community/cheese/APKBUILD
+++ b/community/cheese/APKBUILD
@@ -2,34 +2,50 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=cheese
pkgver=3.34.0
-pkgrel=7
+pkgrel=8
pkgdesc="Take photos and videos with your webcam"
url="https://wiki.gnome.org/Apps/Cheese"
arch="all"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas"
-makedepends="glib-dev gtk+3.0-dev gdk-pixbuf-dev gstreamer-dev
- gst-plugins-bad-dev gnome-desktop-dev clutter-dev clutter-gtk-dev
- clutter-gst-dev libcanberra-dev libx11-dev gobject-introspection-dev
- libxslt docbook-xml docbook-xsl itstool meson vala gtk-doc"
+makedepends="
+ clutter-dev
+ clutter-gst-dev
+ clutter-gtk-dev
+ docbook-xml
+ docbook-xsl
+ gdk-pixbuf-dev
+ glib-dev
+ gnome-desktop-dev
+ gobject-introspection-dev
+ gst-plugins-bad-dev
+ gstreamer-dev
+ gtk+3.0-dev
+ gtk-doc
+ itstool
+ libcanberra-dev
+ libx11-dev
+ libxslt
+ meson
+ vala
+ "
checkdepends="xvfb-run"
options="!check" # wonky tests
-subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs"
source="https://download.gnome.org/sources/cheese/${pkgver%.*}/cheese-$pkgver.tar.xz"
build() {
- meson \
- --prefix=/usr \
- --sysconfdir=/etc \
- --mandir=/usr/share/man \
- --localstatedir=/var \
- --buildtype=plain \
- . output
- ninja -C output
+ abuild-meson . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
}
package() {
- DESTDIR="$pkgdir" ninja -C output install
+ DESTDIR="$pkgdir" meson install -C output
+}
+
+libs() {
+ mkdir -p "$subpkgdir"/usr/lib
+ mv "$pkgdir"/usr/lib/libcheese.so.* "$subpkgdir"/usr/lib
}
sha512sums="093b4e5f7f15fd0c445fffd254d4a5035a4e3e91bacccdeeda64a4a7182901646daea5c8596c954a67896f9aaf37dab2309c21e8f026583f59d787a2c1e4c200 cheese-3.34.0.tar.xz"