From 29839c49ed647d422883cc1badbf6754e126394c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20M=C3=BCller=20Madsen?= Date: Thu, 20 Oct 2016 02:24:28 +0200 Subject: [PATCH] add GNUMail --- gnumail/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ gnumail/gnumail.install | 11 +++++++++++ 2 files changed, 45 insertions(+) create mode 100644 gnumail/PKGBUILD create mode 100644 gnumail/gnumail.install diff --git a/gnumail/PKGBUILD b/gnumail/PKGBUILD new file mode 100644 index 0000000..2147e06 --- /dev/null +++ b/gnumail/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Christoffer Müller Madsen +pkgname=gnumail +_pkgname=GNUMail +pkgver=1.2.2 +pkgrel=1 +pkgdesc="GNUMail" +arch=(i686 x86_64) +url="http://home.gna.org/gnustep-nonfsf/gnumail.html" +license=('GPL') +install=$pkgname.install +depends=(gnustep-base gnustep-gui gnustep-back pantomime addresses) +makedepends=('gcc-objc' + 'gnustep-make') +provides=(gnumail) +conflicts=(gnumail) +source=(http://download.gna.org/gnustep-nonfsf/$_pkgname-$pkgver.tar.gz) +md5sums=('c2cc13b7c13d96b83520be5671531ed3') + +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/gnumail/gnumail.install b/gnumail/gnumail.install new file mode 100644 index 0000000..2eaa605 --- /dev/null +++ b/gnumail/gnumail.install @@ -0,0 +1,11 @@ +post_install() { + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +}