summaryrefslogtreecommitdiff
path: root/pcr/gimp-toolset-gps/PKGBUILD
blob: a74d6d9288fe71c9cefa62bb099f0dd1dc55ba8e (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
44
45
46
47
48
49
50
51
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>

pkgname=gimp-toolset-gps
_pkgname=${pkgname:13}
_reqname=${pkgname::4}
pkgver=2.0
_pkgver=${pkgver/./_}
pkgrel=1
_pkgsrc1=${_pkgname^^}%20$_pkgver%20final
_pkgsrc2=${_pkgname^^}%20extras
pkgdesc='GIMP Paint Studio is a collection of brushes and accompanying tool presets. highly useful feature of the GIMP.'
arch=any
license=(
  GPL2
  CCPL:by-sa
)
url=https://code.google.com/p/$_pkgname-gimp-paint-studio
depends=gimp
makedepends=unzip-libre
noextract=(
  $_pkgsrc1.zip
  $_pkgsrc2.zip
)
source=(
  https://$_pkgname-gimp-paint-studio.googlecode.com/files/$_pkgsrc1.zip
  https://$_pkgname-gimp-paint-studio.googlecode.com/files/$_pkgsrc2.zip
)
sha512sums=(
  b06016eab194db7862590940c6fb7e9c14bbb6d3ce83c2b85293da2c75ecf8b9e64585a38f749da36d63e2711a25a0073415568f10be4b997120d93ba2b5c112
  c3ef322898299bde60f2c8e29ebdd5fa47236f6b2859bf5d3d01a92290e1ad888ba71b0813f7325921c87bf57632cf794da31e8ccab0c46cb020be52d2c1135f
)

prepare() {
  a=$srcdir/$_pkgname-$pkgver
  mkdir $a
  unzip $srcdir/$_pkgsrc1.zip -d $a
  unzip $srcdir/$_pkgsrc2.zip -d $a
  # drop useless splashes
  rm -v $a/splashes/* && rmdir -v $a/splashes
  # fix perm for custom umask
  find $srcdir/$_pkgname-$pkgver -type d -exec chmod 0755 -R {} \; &&\
    find $srcdir/$_pkgname-$pkgver -type f -exec chmod 0644 -R {} \;
}

package() {
  b=$pkgdir/usr/share/gimp/2.0
  install -d $b
  cp -va $srcdir/$_pkgname-$pkgver/* $b
}

# vim:set ts=2 sw=2 et: