summaryrefslogtreecommitdiff
path: root/extra/imlib2/PKGBUILD
blob: a51feb3fd7fd9e3eba2972f16f4df745640f87cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# $Id: PKGBUILD 191920 2013-08-01 06:59:49Z bpiotrowski $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Arjan Timmerman <arjan.archlinux.org>
# Contributor: Tom Newsom <Jeepster.gmx.co.uk>

pkgname=imlib2
pkgver=1.4.5
pkgrel=5
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' 'mips64el')
license=('BSD')
depends=('libtiff' 'giflib' 'bzip2' 'freetype2' 'libxext' 'libpng' 'libid3tag' 'libjpeg-turbo')
options=('!libtool')
source=(http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2
        imlib2-giflib5.patch)
sha1sums=('af86a2c38f4bc3806db57e64e74dc9814ad474a0'
          '29d0778ffbe6e57f08048918a79eb1ad6af87bce')

prepare() {
  cd $pkgname-$pkgver
  patch -Np0 -i ../imlib2-giflib5.patch
}

build() {
  cd $pkgname-$pkgver

  [ $CARCH = "i686" ] && EXTRAOPTS="--enable-mmx"
  [ $CARCH = "x86_64" ] && EXTRAOPTS="--enable-amd64"

  ./configure --prefix=/usr \
              --sysconfdir=/etc/imlib2 \
              --x-libraries=/usr/lib $EXTRAOPTS
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install

  # Install License
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}