# $Id: PKGBUILD 112279 2014-05-30 21:58:10Z faidoc $ # Maintainer: Alexandre Filgueira # Based on gnome-control-center: # Jan Alexander Steffens (heftig) # Jan de Groot pkgname=cinnamon-control-center pkgver=2.2.9 pkgrel=1 pkgdesc="The Control Center for Cinnamon" arch=('i686' 'x86_64') depends=('cinnamon-settings-daemon' 'cinnamon-translations' 'cinnamon-menus' 'libgnomekbd' 'network-manager-applet') optdepends=('gnome-color-manager: for color management tasks') makedepends=('intltool' 'gnome-common' 'docbook-xsl') url="https://github.com/linuxmint/cinnamon-control-center" install=cinnamon-control-center.install license=('GPL') options=('!emptydirs') source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/cinnamon-control-center/archive/$pkgver.tar.gz") sha256sums=('76b32187298f4d934ded2a2a898c371e7644fe9f3142b41bf9acf39d11436491') build() { cd $pkgname-$pkgver ./autogen.sh --prefix=/usr --sysconfdir=/etc \ --localstatedir=/var --disable-static \ --enable-systemd \ --disable-update-mimedb #https://bugzilla.gnome.org/show_bug.cgi?id=656229 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install # Remove unused stuff make -C panels/sound DESTDIR="$pkgdir" uninstall make -C panels/sound/data DESTDIR="$pkgdir" install make -C shell DESTDIR="$pkgdir" uninstall-binPROGRAMS uninstall-directoryDATA uninstall-uiDATA rm -R "$pkgdir/usr/share/applications" rm -R "$pkgdir/etc" # Fix a warning chown 102:0 "$pkgdir/usr/share/polkit-1/rules.d" chmod 700 "$pkgdir/usr/share/polkit-1/rules.d" }