updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / ming-git / PKGBUILD
blobf40cb1de008d3ae1304447a26455024480410cbe
1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
7 # for more information on packaging from GIT sources.
9 # Maintainer: mar77i <mysatyre at gmail dot com>
10 pkgname=ming-git
11 _pkgname=libming
12 pkgver=20111102
13 pkgrel=1
14 pkgdesc="SWF output library"
15 arch=('i686' 'x86_64')
16 url="http://www.libming.net/"
17 license=('GPL' 'LGPL')
18 depends=('freetype2' 'libpng' 'flex')
19 makedepends=('git' 'bison' 'pkgconfig' 'python2')
20 options=('!libtool' '!emptydirs')
22 _gitroot="https://github.com/$_pkgname/$_pkgname.git"
23 _gitname="$_pkgname"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [[ -d "$_gitname" ]]; then
30     cd "$_gitname" && git pull origin
31     msg "The local files are updated."
32   else
33     git clone "$_gitroot" "$_gitname"
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting build..."
39   rm -rf "$srcdir/$_gitname-build"
40   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43   ./autogen.sh
44   LDFLAGS="${LDFLAGS/ -Wl,--as-needed/}"
45   PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-debug --enable-python
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
51   make DESTDIR="$pkgdir" install
54 # vim:set ts=2 sw=2 et: