Add gimp-imagescaler-git

This commit is contained in:
Marti Raudsepp 2013-02-11 11:16:18 +02:00
commit 87821b8548
2 changed files with 60 additions and 0 deletions

15
.SRCINFO Normal file
View file

@ -0,0 +1,15 @@
pkgbase = gimp-imagescaler-git
pkgdesc = Gamma-correct image scaling (Gimp, Python)
pkgver = 20130211
pkgrel = 1
url = https://blog.hartwork.org/?p=1173
arch = any
license = GPL
makedepends = git
depends = gimp
depends = python2
provides = gimp-imagescaler
conflicts = gimp-imagescaler
pkgname = gimp-imagescaler-git

45
PKGBUILD Normal file
View file

@ -0,0 +1,45 @@
# Maintainer: Marti Raudsepp <marti@juffo.org>
pkgname=gimp-imagescaler-git
pkgver=20130211
pkgrel=1
pkgdesc="Gamma-correct image scaling (Gimp, Python)"
arch=('any')
url="https://blog.hartwork.org/?p=1173"
license=('GPL')
depends=('gimp' 'python2')
makedepends=('git')
provides=('gimp-imagescaler')
conflicts=('gimp-imagescaler')
_gitroot=git://git.goodpoint.de/imagescaler.git
_gitname=imagescaler
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [[ -d "$_gitname" ]]; then
cd "$_gitname" && git pull origin
msg "The local files are updated."
else
git clone "$_gitroot" "$_gitname"
fi
msg "GIT checkout done or server timeout"
msg "Starting build..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
#
# BUILD HERE
#
}
package() {
cd "$srcdir/$_gitname-build"
python2 setup.py install --root=$pkgdir
}
# vim:set ts=2 sw=2 et: