From 55e3cfdaae94ddd13fe677f694cac96f416c578d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Thu, 20 Oct 2016 01:48:19 +0200 Subject: [PATCH] add SystemPreferences-svn --- systempreferences-svn/PKGBUILD | 36 +++++++++++++++++++ .../systempreferences-svn.install | 11 ++++++ 2 files changed, 47 insertions(+) create mode 100644 systempreferences-svn/PKGBUILD create mode 100644 systempreferences-svn/systempreferences-svn.install diff --git a/systempreferences-svn/PKGBUILD b/systempreferences-svn/PKGBUILD new file mode 100644 index 0000000..6de4398 --- /dev/null +++ b/systempreferences-svn/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Christoffer Müller Madsen +pkgname=systempreferences-svn +_pkgname=SystemPreferences +pkgver=r40163 +pkgrel=1 +pkgdesc="SystemPreferences for GNUstep" +arch=(i686 x86_64) +url="http://www.gnustep.org/experience/systempreferences.html" +license=('GPL') +install=$pkgname.install +depends=(gnustep-base gnustep-gui gnustep-back) +makedepends=('gcc-objc' + 'gnustep-make') +provides=(systempreferences systempreferences-git) +conflicts=(systempreferences systempreferences-svn) +source=('systempreferences-svn::svn+http://svn.gna.org/svn/gnustep/apps/systempreferences/trunk') +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + local ver="$(svnversion)" + printf "r%s" "${ver//[[:alpha:]]}" +} + +build() { + cd $srcdir/$pkgname + . /usr/share/GNUstep/Makefiles/GNUstep.sh + make +} + +package() { + cd $srcdir/$pkgname + make DESTDIR="$pkgdir/" install + install -D -m644 "$pkgdir/usr/lib/GNUstep/Applications/$_pkgname.app/Resources/$_pkgname.desktop" \ + "$pkgdir/usr/share/applications/$_pkgname.desktop" +} diff --git a/systempreferences-svn/systempreferences-svn.install b/systempreferences-svn/systempreferences-svn.install new file mode 100644 index 0000000..2eaa605 --- /dev/null +++ b/systempreferences-svn/systempreferences-svn.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}