# Maintainer: Michael Healy # vercheck-pkgbuild: auto # vercheck-ubuntu: name=${pkgname%-*}, repo=xenial # vercheck-archlinux: name=${pkgname%-*}, repo=extra, arch=x86_64 # vercheck-gnome: name=${pkgname%-*}, majorver=3.19 pkgname=gsettings-desktop-schemas-ubuntu _ubuntu_rel=1ubuntu1 _ubuntu_ver=3.18.1 pkgver=3.20.0 pkgrel=1 pkgdesc="Shared GSettings schemas for the desktop" arch=(any) url="http://live.gnome.org/" license=(GPL) depends=(glib2) makedepends=(intltool gobject-introspection) provides=("${pkgname%-*}=${pkgver}") conflicts=("${pkgname%-*}") install=${pkgname%-*}.install source=("http://ftp.gnome.org/pub/gnome/sources/${pkgname%-*}/${pkgver%.*}/${pkgname%-*}-${pkgver}.tar.xz" "https://launchpad.net/ubuntu/+archive/primary/+files/gsettings-desktop-schemas_${_ubuntu_ver:-${pkgver}}-${_ubuntu_rel}.debian.tar.xz" git_revert_background_key_removal.patch git_revert_menu_icon_key_removal.patch git_revert_notifications_key_removal.patch ubuntu_lock-on-suspend.patch) sha512sums=('559baf477be9f728c5fea24232218ec4ff17ac97a6db166749fbca4dc1d3995e79824dc977cae5aa10b2197aa9c0e65b884f5c1cb446db109bc15dafe456f7a1' '593cbd34d5456ba8790ebd8c600216081f159f754c44969c1cde4f4057044bea53054b260b2f660d8dfc15b344e33f0f7382f336d5ed660047cf8a797c101ab7' '423c81fefb2eb1580d703499baee449e0dfe88b0d8bb3cbc5815c2668e859f0334bb352d0f58ba312c7fc3257fd8a78f0935c834429b3c7d3986ee5996b5ae5a' 'cae6c01833043d9d7d889561a6afb7bae5f9186603552e1277b6a8f792148bd585ac19aac41253223cdeeba4d031f51984ac126fae9c02ceca396cb69e4db75f' '2af269c096d9f15a7e91440a97ee69d08e778b498fd835194d5abca02630bc7a5dcb2c8a2ad3ae21e95b40cbcf0cd6773f34aeb9a2655d25f4b59d231f478b1d' '301830b3f9c9f2aac9e44ea2e2305cfc9d4864f3bd6ac4c5824ce12de45c72329ddca303adfb7948063acbb7ff892b0970767b1b552aff00834c517f25af2c8c') prepare() { cd "${pkgname%-*}-${pkgver}" # Apply Ubuntu's patches sed -i '/git_revert_notifications_key_removal.patch/d' ../debian/patches/series # for i in $(grep -v '#' ../debian/patches/series); do # msg "Applying ${i} ..." # patch -p1 -i "../debian/patches/${i}" # done patch -p1 -i ../git_revert_background_key_removal.patch patch -p1 -i ../git_revert_menu_icon_key_removal.patch patch -p1 -i ../git_revert_notifications_key_removal.patch patch -p1 -i ../ubuntu_lock-on-suspend.patch } build() { cd "${pkgname%-*}-${pkgver}" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --disable-schemas-compile make } package() { cd "${pkgname%-*}-${pkgver}" make DESTDIR="${pkgdir}" install }