pmaports/temp/gnome-control-center/APKBUILD

82 lines
2.2 KiB
Text

# Forked from Alpine to apply Purism's mobile patches
pkgname=gnome-control-center
pkgver=9999_git20201014
pkgrel=0
_commit="fbc4f08fb6cb51494f95822ff6ce61999460946c"
pkgdesc="GNOME control center"
url="https://gitlab.gnome.org/GNOME/gnome-control-center"
# limited by gnome-online-accounts
arch="all !s390x !mips !mips64"
license="GPL-2.0-or-later"
depends="cups-pk-helper openrc-settingsd dbus:org.freedesktop.Secrets"
makedepends="
clutter-dev
clutter-gtk-dev
gnome-desktop-dev
gnome-settings-daemon-dev
gnome-online-accounts-dev
grilo-dev
libgtop-dev
gnome-bluetooth-dev
colord-gtk-dev
samba-dev
accountsservice-dev
libpwquality-dev
networkmanager-dev
libnma-dev
modemmanager-dev
krb5-dev
itstool
libxml2-utils
libxslt
docbook-xml
docbook-xsl
pulseaudio-dev
udisks2-dev
cups-dev
meson
libsecret-dev
gsound-dev
libgudev-dev
polkit-dev
libhandy-dev
cheese-dev
ibus-dev"
options="!check" # needs unpackaged py-dbusmock
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-dev $pkgname-lang $pkgname-dbg $pkgname-doc $pkgname-bash-completion"
source="https://source.puri.sm/Librem5/gnome-control-center/-/archive/$_commit/gnome-control-center-$_commit.tar.gz
README.alpine
build-fix.patch
"
builddir="$srcdir/$pkgname-$_commit"
build() {
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=plain \
-Dcheese=true \
-Dibus=true \
. output
ninja -C output
}
check() {
ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
mkdir -p "$pkgdir"/usr/lib
mv "$pkgdir"/usr/share/pkgconfig "$pkgdir"/usr/lib
install -Dm0644 "$srcdir"/README.alpine -t "$pkgdir"/usr/share/doc/"$pkgname"
}
sha512sums="5a1361b4494c947bd533df20cb87fae1491439acf623d1971ee290dac75acd12414599e39a04dd45ffd84e15bd516e9a553acfd55bbfc31ce2d6d4fdff6be3c9 gnome-control-center-fbc4f08fb6cb51494f95822ff6ce61999460946c.tar.gz
350aa443149c71851ad4de0976c7fc5cb626ba0c57a8d41e6ef80da1c65ed84a4dfa2483ae92630a3b611c4bfa9360ded82b55e8cd0e3907294c025e4f6b1671 README.alpine
78a87bfddb1a660873ec1380a5f8f0f3ad5ef04dd3414d9a7f25ec55a8d4b653769f8e49f519d45c8b17bb3c6549d855e472a33a61c8cca1f9e18f16a05d1cb8 build-fix.patch"