updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ecomorph-git / PKGBUILD
blobc57e42a38c2c51d193e608fe5bd1c03a6e882bbb
1 # Old Contributor: Michele Gastaldo <pikiweb@gmail.com>
2 # Contributor: twa022 <twa022 at gmail dot com>
4 pkgname=ecomorph-git
5 pkgver=20110425
6 pkgrel=2
7 pkgdesc="A compositing manager for E17"
8 arch=('i686' 'x86_64')
9 url="http://code.google.com/p/itask-module/wiki/Stuff"
10 license=('custom')
11 depends=('ecomp-git')
12 makedepends=('intltool' 'git' 'automake' 'pkgconfig')
13 conflicts=('ecomorph')
14 provides=('ecomorph')
15 options=('!libtool')
16 source=()
17 md5sums=()
19 _gitroot="git://github.com/jeffdameth/ecomorph.git"
20 _gitname="ecomorph"
22 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   cd $srcdir/$_gitname
42   ./autogen.sh --prefix=/opt/ecomorph
43   LDFLAGS="-Wl,--hash-style=gnu,-L/opt/ecomorph/lib" \
44   CFLAGS="-I/opt/ecomorph/include $CFLAGS" \
45   CPPFLAGS="-I/opt/ecomorph/include $CFLAGS" \
46   PKG_CONFIG_PATH="/opt/ecomorph/lib/pkgconfig:$PKG_CONFIG_PATH" \
47   make || return 1
48   make DESTDIR=$pkgdir install || return 1
50   mkdir -p "$pkgdir"/usr/bin
51   ln -s /opt/ecomorph/bin/ecomp.sh "$pkgdir"/usr/bin/ecomp.sh
52   ln -s /opt/ecomorph/bin/ecomorph.sh "$pkgdir"/usr/bin/ecomorph.sh
53   
54   install -D -m644 COPYING $startdir/pkg/usr/share/licenses/$pkgname/COPYING
55   install -D -m644 COPYING-PLAIN $startdir/pkg/usr/share/licenses/$pkgname/COPYING-PLAIN