updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / pngnq-svn / PKGBUILD
blob90cc056dca1e5a3e46dca5a863d528583bd2c5d4
1 # chen bin <chenbin.sh AT gmail DOT com>
2 pkgname=pngnq-svn
3 pkgver=20080502
4 pkgrel=1
5 pkgdesc="A tool for quantizing PNG images in RGBA format - svn version" 
6 arch=('i686' 'x86_64')
7 url="http://pngnq.sourceforge.net/"
8 source=(pngnq.desktop)
9 license=('Attribution-Noncommercial-Share Alike 2.5 Australia')
10 depends=('zlib' 'libpng')
11 makedepends=('subversion')
12 provides=('pngnq')
13 conflicts=('pngnq')
14 replaces=('pngnq-svn')
15 md5sums=()
16 _svnmod="pngnq"
17 _svntrunk="https://pngnq.svn.sourceforge.net/svnroot/pngnq"
18 build() {
19         cd $startdir/src
20         mkdir -p ~/.subversion; touch ~/.subversion/servers
21         msg "Connecting to $_svnmod.sourceforge.net SVN server...."
22         svn co $_svntrunk $_svnmod
24         msg "SVN checkout done or server timeout"
25         msg "Starting make..."
27         cd $_svnmod
28         ln -sf `\ls /usr/share/automake*/install-sh` install-sh
29         ln -sf `\ls /usr/share/automake*/missing` missing
30         ln -sf `\ls /usr/share/automake*/depcomp` depcomp
31         ./configure --prefix=/usr
32         msg "Starting build process."
33         make || return 1
34         mkdir -p $startdir/pkg/usr/bin/
35         cp pngcomp $startdir/pkg/usr/bin/pngcomp
36         cp pngnq $startdir/pkg/usr/bin/pngnq