From 44596f21eecc42dedb839fc89e625142b3d6b572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Thu, 20 Oct 2016 01:08:11 +0200 Subject: [PATCH] add GWorkspace --- gworkspace/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ gworkspace/gworkspace.install | 11 +++++++++++ 2 files changed, 46 insertions(+) create mode 100644 gworkspace/PKGBUILD create mode 100644 gworkspace/gworkspace.install diff --git a/gworkspace/PKGBUILD b/gworkspace/PKGBUILD new file mode 100644 index 0000000..d05d134 --- /dev/null +++ b/gworkspace/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Christoffer Müller Madsen +pkgname=gworkspace +_pkgname=GWorkspace +pkgver=0.9.4 +pkgrel=1 +pkgdesc="The GNUstep Workspace" +arch=(i686 x86_64) +url="http://www.gnustep.org/experience/GWorkspace.html" +license=('GPL') +install=$pkgname.install +depends=(gnustep-base gnustep-gui gnustep-back) +makedepends=('gcc-objc' + 'gnustep-make') +provides=(gworkspace) +conflicts=(gworkspace) +replaces=(gworkspace.app-svn) +source=(ftp://ftp.gnustep.org/pub/gnustep/usr-apps/$pkgname-$pkgver.tar.gz) +md5sums=('406256f470781bc3be2670611276780f') + +build() { + cd $srcdir/$pkgname-$pkgver + # necessary to set environment if not in user startup. + #. /opt/GNUstep/System/Library/Makefiles/GNUstep.sh + . /usr/share/GNUstep/Makefiles/GNUstep.sh + #./configure --prefix=/usr/share/GNUstep + ./configure + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + 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/gworkspace/gworkspace.install b/gworkspace/gworkspace.install new file mode 100644 index 0000000..2eaa605 --- /dev/null +++ b/gworkspace/gworkspace.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}