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>
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"
27 msg "Connecting to GIT server...."
29 if [[ -d "$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
31 msg "The local files are updated."
33 git clone "$_gitroot" "$_gitname"
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"
44 LDFLAGS="${LDFLAGS/ -Wl,--as-needed/}"
45 PYTHON=/usr/bin/python2 ./configure --prefix=/usr --disable-debug --enable-python
50 cd "$srcdir/$_gitname-build"
51 make DESTDIR="$pkgdir" install
54 # vim:set ts=2 sw=2 et: