summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ce534e52fc3566ddc554123e321e921499ca88a0 (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
# Contributor: Liu Yuyang <lhtlyy at googlemail dot com>
# Maintainer:Liu Yuyang <lhtlyy at googlemail dot com>

pkgname=gimp-plugin-beautify
pkgver=20121117
pkgrel=1
epoch=0
pkgdesc="GIMP Beautify is a set of GIMP plug-ins for quickly and easily beautify photo "
arch=('i686' 'x86_64')
url="https://github.com/hejiann/beautify"
license=('GPL3')
depends=('gimp')
makedepends=('git')

_gitroot="git://github.com/hejiann/beautify.git"
_gitname="beautify"

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 make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #
  make
}

package() {
  cd "$srcdir/$_gitname-build"
  install -Dm 755 "$srcdir/$_gitname-build/beautify" "$pkgdir/usr/lib/gimp/2.0/plug-ins/beautify" 
  install -Dm 755 "$srcdir/$_gitname-build/skin-whitening" "$pkgdir/usr/lib/gimp/2.0/plug-ins/skin-whitening" 
  install -Dm 755 "$srcdir/$_gitname-build/simple-border" "$pkgdir/usr/lib/gimp/2.0/plug-ins/simple-border" 
  install -Dm 755 "$srcdir/$_gitname-build/border" "$pkgdir/usr/lib/gimp/2.0/plug-ins/border" 
}