From a0282aa1d7f60d29209e28def75ff23734981751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Thu, 20 Oct 2016 01:16:53 +0200 Subject: [PATCH] add Addresses (AddressManager) --- addresses/PKGBUILD | 31 +++++++++++++++++++++++++++++++ addresses/addresses.install | 11 +++++++++++ 2 files changed, 42 insertions(+) create mode 100644 addresses/PKGBUILD create mode 100644 addresses/addresses.install diff --git a/addresses/PKGBUILD b/addresses/PKGBUILD new file mode 100644 index 0000000..1db19a1 --- /dev/null +++ b/addresses/PKGBUILD @@ -0,0 +1,31 @@ +# Maintainer: Christoffer Müller Madsen +pkgname=addresses +_pkgname=Addresses +__pkgname=AddressManager +pkgver=0.4.8 +pkgrel=1 +pkgdesc="Contact manager for GNUstep" +arch=(i686 x86_64) +url="http://gap.nongnu.org/addresses/index.html" +license=('GPL') +install=$pkgname.install +depends=(gnustep-base gnustep-gui gnustep-back) +makedepends=('gcc-objc' + 'gnustep-make') +provides=(addresses) +conflicts=(addresses) +source=(http://savannah.nongnu.org/download/gap/$_pkgname-$pkgver.tar.gz) +md5sums=('35c929e3d2361ab26e3387fa07ca1d29') + +build() { + cd $srcdir/$_pkgname-$pkgver + . /usr/share/GNUstep/Makefiles/GNUstep.sh + 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/addresses/addresses.install b/addresses/addresses.install new file mode 100644 index 0000000..2eaa605 --- /dev/null +++ b/addresses/addresses.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}