summaryrefslogtreecommitdiff
path: root/artistic/gimp-art
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-13 20:33:33 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2012-09-13 20:33:33 -0300
commit1125e0af211fdad4bf992229317014d5cc5aa030 (patch)
tree68ce9e268461e5106810f35145c7700be6a8ed44 /artistic/gimp-art
parentb4903e03dc897db3b525a3dd85b96be8cc30bf01 (diff)
parent03b51852bcdd2ab24f5761a903bbebbac5028c40 (diff)
Merge branch 'master' of ssh://gparabola/srv/git/abslibre
Diffstat (limited to 'artistic/gimp-art')
-rw-r--r--artistic/gimp-art/PKGBUILD57
1 files changed, 32 insertions, 25 deletions
diff --git a/artistic/gimp-art/PKGBUILD b/artistic/gimp-art/PKGBUILD
index 4236ce271..11c3b191b 100644
--- a/artistic/gimp-art/PKGBUILD
+++ b/artistic/gimp-art/PKGBUILD
@@ -1,17 +1,15 @@
-# $Id$
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
-_pkgname=gimp
pkgname=gimp-art
pkgver=2.8.2
-pkgrel=1
+pkgrel=2
pkgdesc='GNU Image Manipulation Program (changed splash artwork)'
arch=(
i686
x86_64
mips64el
)
-url=http://www.$_pkgname.org/
+url=http://www.${pkgname%-art}.org/
license=(
GPL
LGPL
@@ -50,18 +48,21 @@ optdepends=(
'poppler-glib: for pdf support'
)
options=(
- '!libtool'
- '!makeflags'
+ !libtool
+ !makeflags
)
conflicts=(
- $_pkgname
- $_pkgname-devel
+ ${pkgname%-art}
+ ${pkgname%-art}-devel
)
-install=$_pkgname.install
+provides=(
+ ${pkgname%-art}=$pkgver
+)
+install=${pkgname%-art}.install
source=(
- ftp://ftp.$_pkgname.org/pub/$_pkgname/v${pkgver%.*}/$_pkgname-$pkgver.tar.bz2
- $_pkgname-splash-artwork.png
- $_pkgname-splash-artwork.license
+ ftp://ftp.${pkgname%-art}.org/pub/${pkgname%-art}/v${pkgver%.*}/${pkgname%-art}-$pkgver.tar.bz2
+ ${pkgname%-art}-splash-artwork.png
+ ${pkgname%-art}-splash-artwork.license
)
sha512sums=(
82a15072aba97d41a7dd74920f5db4e89442ff83841ac614f6fadfd964bdb8d3ae478ac0ba2e906bcf4569c8de00a1616fd6d626032f093060f28df3655d9111
@@ -70,29 +71,35 @@ sha512sums=(
)
build() {
- cd $srcdir/$_pkgname-$pkgver
+ cd $srcdir/${pkgname%-art}-$pkgver
## Add artwork splash image ##
- install -Dm644 $srcdir/$_pkgname-splash-artwork.png \
- $srcdir/$_pkgname-$pkgver/data/images/$_pkgname-splash.png
+ install -Dm644 $srcdir/${pkgname%-art}-splash-artwork.png \
+ $srcdir/${pkgname%-art}-$pkgver/data/images/${pkgname%-art}-splash.png
- PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc \
- --enable-mp --enable-$_pkgname-console --enable-python --without-aa \
- --with-gif-compression=lzw --with-libcurl --without-gvfs
+ PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
+ --enable-${pkgname%-art}-console \
+ --enable-mp \
+ --enable-python \
+ --sysconfdir=/etc \
+ --with-gif-compression=lzw \
+ --with-libcurl \
+ --without-aa \
+ --without-gvfs
make
}
package() {
- cd $srcdir/$_pkgname-$pkgver
+ cd $srcdir/${pkgname%-art}-$pkgver
make DESTDIR=$pkgdir install
- sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' $pkgdir/usr/lib/$_pkgname/${pkgver::2}0/plug-ins/*.py
+ sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' $pkgdir/usr/lib/${pkgname%-art}/${pkgver::2}0/plug-ins/*.py
## Add artwork splash license ##
- install -Dm644 $srcdir/$_pkgname-splash-artwork.license \
- $pkgdir/usr/share/licenses/$_pkgname/$_pkgname-splash-artwork.license
+ install -Dm644 $srcdir/${pkgname%-art}-splash-artwork.license \
+ $pkgdir/usr/share/licenses/${pkgname%-art}/${pkgname%-art}-splash-artwork.license
rm $pkgdir/usr/share/man/man1/$_pkgname-console.1
- ln -s $_pkgname-console-${pkgver%.*}.1.gz $pkgdir/usr/share/man/man1/$_pkgname-console.1.gz
- ln -s ${_pkgname}tool-${pkgver::2}0 $pkgdir/usr/bin/${_pkgname}tool
- ln -sf ${_pkgname}tool-${pkgver::2}0.1.gz $pkgdir/usr/share/man/man1/${_pkgname}tool.1.gz
+ ln -s ${pkgname%-art}-console-${pkgver%.*}.1.gz $pkgdir/usr/share/man/man1/${pkgname%-art}-console.1.gz
+ ln -s ${pkgname%-art}tool-${pkgver::2}0 $pkgdir/usr/bin/${pkgname%-art}tool
+ ln -sf ${pkgname%-art}tool-${pkgver::2}0.1.gz $pkgdir/usr/share/man/man1/${pkgname%-art}tool.1.gz
}