2020-09-04 20:08:02 +00:00
|
|
|
# Forked from Alpine to apply Purism's mobile patches
|
|
|
|
pkgname=gnome-control-center
|
2021-06-01 11:07:53 +00:00
|
|
|
pkgver=9999_git20210710
|
2020-09-04 20:08:02 +00:00
|
|
|
pkgrel=0
|
2021-06-01 11:07:53 +00:00
|
|
|
_commit="30480740e4e5c0ab2920dc21859c34cbd41df278"
|
2020-09-04 20:08:02 +00:00
|
|
|
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
|
2021-06-01 11:07:53 +00:00
|
|
|
libhandy1-dev
|
2020-09-04 20:08:02 +00:00
|
|
|
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"
|
2021-06-01 11:07:53 +00:00
|
|
|
source="https://source.puri.sm/pureos/packages/gnome-control-center/-/archive/$_commit/gnome-control-center-$_commit.tar.gz
|
|
|
|
0001-Hide-and-disable-building-printer-panel.patch
|
2020-09-04 20:08:02 +00:00
|
|
|
README.alpine
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
|
2021-06-01 11:07:53 +00:00
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
|
|
|
|
patch_dir="$builddir"/debian/patches
|
|
|
|
rm "$patch_dir"/distro-logo.patch
|
|
|
|
sed -i 's/^distro-logo.patch$//' "$patch_dir"/series
|
|
|
|
|
|
|
|
grep "\.patch$" debian/patches/series \
|
|
|
|
| xargs -I {} -t -r -n1 patch -p1 -i debian/patches/{}
|
|
|
|
}
|
|
|
|
|
2020-09-04 20:08:02 +00:00
|
|
|
build() {
|
2021-06-01 11:07:53 +00:00
|
|
|
abuild-meson \
|
|
|
|
-Dcheese=true \
|
|
|
|
-Dibus=true \
|
|
|
|
. output
|
|
|
|
|
|
|
|
# Bad dep file -> blows up when compiling with multiple build jobs otherwise
|
|
|
|
ninja -C output panels/network/cc-network-resources.c
|
|
|
|
ninja -C output panels/network/cc-network-resources.h
|
|
|
|
|
|
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
2020-09-04 20:08:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2021-06-01 11:07:53 +00:00
|
|
|
meson test --no-rebuild -v -C output
|
2020-09-04 20:08:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-06-01 11:07:53 +00:00
|
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
2020-09-04 20:08:02 +00:00
|
|
|
|
2021-06-01 11:07:53 +00:00
|
|
|
mkdir -p "$pkgdir"/usr/lib/pkgconfig
|
|
|
|
mv "$pkgdir"/usr/share/pkgconfig/* "$pkgdir"/usr/lib/pkgconfig
|
|
|
|
rmdir "$pkgdir"/usr/share/pkgconfig
|
2020-09-04 20:08:02 +00:00
|
|
|
|
|
|
|
install -Dm0644 "$srcdir"/README.alpine -t "$pkgdir"/usr/share/doc/"$pkgname"
|
|
|
|
}
|
|
|
|
|
2021-06-01 11:07:53 +00:00
|
|
|
sha512sums="
|
|
|
|
02a1fc03c1c4aaba74e49e0d59ef8ff4307ebd70e605164deed55cb6ba2c2d2c795dfdf6d4dcd8cc9da5e9dbbafac4ecf951faff43843b753c0bc7fc289ecd95 gnome-control-center-30480740e4e5c0ab2920dc21859c34cbd41df278.tar.gz
|
|
|
|
b8954191d454e92386c42c9adacfdbb5126e347f5cb7014a2000112662f3af6a9b78219b575121f165377aef76be72389cdf5c5bb8b209878c16a18bddcc6732 0001-Hide-and-disable-building-printer-panel.patch
|
2020-09-04 20:08:02 +00:00
|
|
|
350aa443149c71851ad4de0976c7fc5cb626ba0c57a8d41e6ef80da1c65ed84a4dfa2483ae92630a3b611c4bfa9360ded82b55e8cd0e3907294c025e4f6b1671 README.alpine
|
2021-06-01 11:07:53 +00:00
|
|
|
"
|