PKGBUILDs/extra/gmime/PKGBUILD

38 lines
1 KiB
Bash
Raw Normal View History

2012-12-10 23:03:02 +00:00
# $Id: PKGBUILD 146716 2012-01-16 19:50:47Z dreisner $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Ben <ben@benmazer.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - v7h needs to be built as -O1, workaround for gcc bug
pkgname=gmime
2013-06-30 21:10:06 +00:00
pkgver=2.6.16
2012-12-10 23:03:02 +00:00
pkgrel=1
pkgdesc="Core mime parsing library"
arch=('i686' 'x86_64')
license=('GPL')
url="http://spruce.sourceforge.net/gmime/"
depends=('glib2' 'gpgme' 'zlib')
makedepends=('gtk-sharp-2')
options=('!libtool')
source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
2013-06-30 21:10:06 +00:00
sha256sums=('1093c2c9b4644d53b9c2df30042b3c4c2e9141d3e65e299030d227485d95c8af')
2012-12-10 23:03:02 +00:00
build() {
# get rid of that .wapi errors in fakeroot
export MONO_SHARED_DIR="$srcdir/weird"
mkdir -p "$MONO_SHARED_DIR"
[ $CARCH == "armv7h" ] && CFLAGS=`echo $CFLAGS | sed -e 's/-O2/-O1/'` && CXXFLAGS="$CFLAGS"
cd "$srcdir/$pkgname-$pkgver"
./configure --prefix=/usr --enable-smime \
--disable-static
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
}