updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / libimago-svn / PKGBUILD
blob1d74543b12b91759b64ba45cedd2bd295ef267c3
1 #Maintainer: kfgz <kfgz at interia pl>
3 pkgname=libimago-svn
4 pkgver=53
5 pkgrel=1
6 pkgdesc="Image file format I/O library"
7 url="http://gfxtools.sourceforge.net/"
8 license=('custom')
9 arch=(i686 x86_64)
10 provides=(libimago)
11 conflicts=(libimago)
13 _svntrunk="http://gfxtools.svn.sourceforge.net/svnroot/gfxtools/libimago"
14 _svnmod="libimago"
16 build() {
17   if [ -d ${_svnmod}/.svn ]; then
18      (cd ${_svnmod} && svn up -r ${pkgver})
19    else
20      svn co ${_svntrunk} --config-dir ./ -r ${pkgver} ${_svnmod}
21   fi
23   msg "SVN checkout done or server timeout"
24   msg "Starting make..."
26   cd ${srcdir}/libimago
27   sed -i "s/O3/O2/g" configure
28   ./configure --prefix=/usr
29   make
32 package() {
33   cd ${srcdir}/libimago
34   install -dm755 ${pkgdir}/usr/{lib,lib/pkgconfig,include,share/doc/libimago,share/licenses/libimago}
35   install -m644 libimago.a ${pkgdir}/usr/lib
36   install -m755 libimago.so ${pkgdir}/usr/lib
37   install -m644 imago.pc ${pkgdir}/usr/lib/pkgconfig
38   install -m644 README ${pkgdir}/usr/share/doc/libimago
39   install -m644 src/image.h ${pkgdir}/usr/include/imago.h
40   install -m644 COPYING ${pkgdir}/usr/share/licenses/libimago