updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / gnustep-base-svn / PKGBUILD
blob3982c4e358914df7cd724dafeba9e079e561a15b
1 # Contributor: Mildred <silkensedai@online.fr>
2 # kate: hl bash; space-indent on; indent-width 2;
3 # use versionpkg
5 pkgname=gnustep-base-svn
6 pkgver=25219
7 pkgrel=2
8 pkgdesc="Foundation libraries for GNUstep"
9 arch=(i686)
10 url="http://gnustep.org/"
11 license=('LGPL')
12 depends=(gnustep-make ffcall openssl libxml2 libxslt zlib)
13 makedepends=('subversion')
14 provides=(gnustep-base)
15 conflicts=(gnustep-base)
16 replaces=()
17 backup=()
18 install=gnustep-base-svn.install
19 source=()
20 noextract=()
21 md5sums=()
23 _svntrunk="http://svn.gna.org/svn/gnustep/libs/base/trunk/"
24 _svnmod=gnustep-base
26 build() {
27   cd "$startdir/src"
29   if [ -d "$_svnmod/.svn" ]; then
30     msg "SVN update $_svnmod"
31     (cd "$_svnmod" && svn up -r "$pkgver")
32   else
33     msg "SVN checkout $_svntrunk $_svnmod"
34     svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
35   fi
37   msg "SVN checkout done or server timeout. Preparing sources..."
39   cp -r "$_svnmod" "$_svnmod-build"
40   cd "$_svnmod-build"
42   msg "Starting make..."
44   . /etc/profile.d/GNUstep.sh
45   export MAKEFLAGS="`sed 's/-j[0-9]*//g' <<<"$MAKEFLAGS"`"
46   ./configure --prefix=/opt/GNUstep
47   make || return 1
48   make DESTDIR="$startdir/pkg" install