[arch-commits] Commit in imlib2/trunk (PKGBUILD)
Ronald van Haren
ronald at archlinux.org
Thu Nov 27 22:51:52 UTC 2008
Date: Thursday, November 27, 2008 @ 17:51:51
Author: ronald
Revision: 19589
upgpkg: imlib2 1.4.2-1
Modified:
imlib2/trunk/PKGBUILD
----------+
PKGBUILD | 45 +++++++++++++++++++++++----------------------
1 file changed, 23 insertions(+), 22 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-11-27 22:14:31 UTC (rev 19588)
+++ PKGBUILD 2008-11-27 22:51:51 UTC (rev 19589)
@@ -1,38 +1,39 @@
# $Id$
# Maintainer: Ronald van Haren <ronald.archlinux.org>
-# Contributor: arjan <arjan.archlinux.org>
-# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
+# Contributor: Arjan Timmerman <arjan.archlinux.org>
+# Contributor: Tom Newsom <Jeepster.gmx.co.uk>
pkgname=imlib2
-pkgver=1.4.1
-pkgrel=2
-pkgdesc="Imlib2 is the successor to Imlib. It is NOT a newer version -- Imlib 2 can be installed alongside Imlib 1.x"
-arch=(i686 x86_64)
-url="http://sourceforge.net/projects/enlightenment"
+pkgver=1.4.2
+pkgrel=1
+pkgdesc="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support"
+url="http://sourceforge.net/projects/enlightenment/"
+arch=('i686' 'x86_64')
license=('BSD')
-depends=('libtiff' 'libungif' 'bzip2' 'freetype2' 'libxext' 'libpng' 'libid3tag')
+depends=('libtiff' 'libungif' 'bzip2' 'freetype2' 'libxext' 'libpng' 'libid3tag' 'libjpeg')
options=('!libtool')
-source=(http://downloads.sourceforge.net/sourceforge/enlightenment/$pkgname-$pkgver.tar.gz \
- bufferoverflow.patch)
-md5sums=('16a3d885e523303be794282c0ed90841'
- '76def1fe0ac2ac1686ff24d29979606f')
+source=("http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2" \
+ 'bufferoverflow.patch')
+md5sums=('9f15568e76ebda9092c571e0df261f54' '76def1fe0ac2ac1686ff24d29979606f')
build() {
cd $srcdir/$pkgname-$pkgver
- # Enable x86 MMX optimizations for i686 (32-bit assembler code not compatible with x86_64)
- [ "${CARCH}" = "i686" ] && EXTRAOPTS="--disable-mmx"
- # Disable AMD64 optimizations due to bug in assembler code
- [ "${CARCH}" = "x86_64" ] && EXTRAOPTS="--disable-amd64"
+ # imlib2 has different configure options for x86/amd64 mmx
+ [ $CARCH = "i686" ] && EXTRAOPTS="--disable-amd64 --enable-mmx"
+ [ $CARCH = "x86_64" ] && EXTRAOPTS="--enable-amd64 --disable-mmx"
- # Security fix (buffer overflow), Debian bug #505714
+
+ # Security Fix (Buffer Overflow), upstream fix
patch -Np0 -i $srcdir/bufferoverflow.patch || return 1
- # build & install
- ./configure --prefix=/usr --sysconfdir=/etc/imlib2 --x-libraries=/usr/lib $EXTRAOPTS
+ # Configure and Build
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc/imlib2 \
+ --x-libraries=/usr/lib $EXTRAOPTS || return 1
make || return 1
- make DESTDIR=$startdir/pkg install || return 1
+ make DESTDIR=$pkgdir install || return 1
- # install BSD license
- install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ # Install License
+ install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}
More information about the arch-commits
mailing list