aboutsummaryrefslogtreecommitdiffstats
path: root/main/imlib2
diff options
context:
space:
mode:
Diffstat (limited to 'main/imlib2')
-rw-r--r--main/imlib2/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/imlib2/APKBUILD b/main/imlib2/APKBUILD
index 99e48f2e38..dd4aa7d475 100644
--- a/main/imlib2/APKBUILD
+++ b/main/imlib2/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=imlib2
pkgver=1.4.2
-pkgrel=1
+pkgrel=2
pkgdesc="Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support"
url="http://sourceforge.net/projects/enlightenment/"
license="BSD"
@@ -12,10 +12,14 @@ makedepends="tiff-dev giflib-dev bzip2-dev freetype-dev libxext-dev
source="http://downloads.sourceforge.net/enlightenment/$pkgname-$pkgver.tar.bz2
bufferoverflow.patch"
-build ()
-{
- cd $srcdir/$pkgname-$pkgver
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ cd "$_builddir"
patch -Np0 -i $srcdir/bufferoverflow.patch || return 1
+}
+
+build() {
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc/imlib2 \
--x-libraries=/usr/lib \
@@ -23,6 +27,10 @@ build ()
--disable-amd64 \
|| return 1
make || return 1
+}
+
+package() {
+ cd "$_builddir"
make DESTDIR=$pkgdir install || return 1
install -Dm644 COPYING $pkgdir/usr/share/licenses/$pkgname/COPYING
}