aboutsummaryrefslogtreecommitdiffstats
path: root/main/gimp/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gimp/APKBUILD')
-rw-r--r--main/gimp/APKBUILD20
1 files changed, 16 insertions, 4 deletions
diff --git a/main/gimp/APKBUILD b/main/gimp/APKBUILD
index 32a2b2b979..8aa6b05885 100644
--- a/main/gimp/APKBUILD
+++ b/main/gimp/APKBUILD
@@ -11,14 +11,25 @@ makedepends="gtk+-dev libxpm-dev libxmu-dev librsvg-dev dbus-glib-dev
jpeg-dev libpng-dev curl-dev"
install=
subpackages="$pkgname-dev $pkgname-doc"
-source="ftp://ftp.$pkgname.org/pub/$pkgname/v2.6/$pkgname-$pkgver.tar.bz2"
+source="ftp://ftp.$pkgname.org/pub/$pkgname/v2.6/$pkgname-$pkgver.tar.bz2
+ gimp-libpng1.5-compat.patch"
+_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
+
+ for i in $source; do
+ case $i in
+ *.patch)
+ msg "Applying $i..."
+ patch -s -p1 -N -i "$srcdir"/$i || return 1
+ ;;
+ esac
+ done
}
build() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
./configure --prefix=/usr \
--sysconfdir=/etc \
--enable-mp \
@@ -34,8 +45,9 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
ln -s gimptool-2.0 "$pkgdir/usr/bin/gimptool" || return 1
}
+
md5sums="bb2939fe13e54fc7255cef5d097bb5dd gimp-2.6.11.tar.bz2"