summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a46315c45b9a572c3dda9b9a71232390235b9e27 (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
# Maintainer: Milkii Brewster (milkii on freenode)
# Creator: Lukas Jirkovsky <l.jirkovsky@gmail.com>
pkgname=gimp-plugin-texturize-git
pkgver=r35.a14af5b
pkgrel=1
pkgdesc="Generates large textures from a small sample"
arch=('i686' 'x86_64')
url="http://github.com/lmanul/gimp-texturize/"
license=('GPL')
depends=('git' 'gimp')
makedepends=('perl-xml-parser')
source=($pkgname::git+https://github.com/lmanul/gimp-texturize)
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
 }

prepare() {
  cd "$pkgname"
  ./autogen.sh
}

build() {
  cd "$pkgname"
  # fix the build with recent versions of gimp
  # find . -type f -name "*.c" -exec sed -i '/.*gimpimage_pdb.h.*/ d' '{}' ';'
  # find . -type f -name "*.cpp" -exec sed -i '/.*gimpimage_pdb.h.*/ d' '{}' ';'
  make
}

package() {
  cd "$pkgname"
  make DESTDIR="$pkgdir" install
}