updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / objfw-hg / PKGBUILD
blobd362a0240aa574a1e7f22fe8240da7dd79a4038f
1 # Maintainer: Thorsten Töpper <atsutane-aur@freethoughts.de>
3 pkgname=objfw-hg
4 pkgver=1122
5 pkgrel=1
6 pkgdesc="A portable framework for the Objective C language."
7 arch=('i686' 'x86_64')
8 url="https://webkeks.org/objfw"
9 license=('custom:QPL' 'GPL2' 'GPL3')
10 provides=('objfw')
11 conflicts=('objfw')
12 replaces=('libobjfw-hg')
13 depends=('gcc-libs' 'sh')
14 makedepends=('mercurial' 'gcc-objc')
15 optdepends=('gcc-objc: For active usage of this framework.')
17 _hgroot=https://webkeks.org/hg
18 _hgrepo=objfw
20 build() {
21         cd "$srcdir"
23         if [ -d "$_hgrepo" ]; then
24                 cd "$srcdir/$_hgrepo"
25     hg pull -u
26         else
27                 hg clone "$_hgroot/$_hgrepo"
28         fi
30         msg "Mercurial checkout done or server timeout"
31         msg "Starting make..."
33   rm -rf "$srcdir/$_hgrepo-build"
34         cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
35         cd "$srcdir/$_hgrepo-build"
36         
37   ./autogen.sh
38         ./configure --prefix=/usr
39   make
42 package() {
43   cd "$srcdir/$_hgrepo-build"
44         make DESTDIR=${pkgdir} install
46   install -Dm644 LICENSE.QPL "$pkgdir/usr/share/licenses/$pkgname/LICENSE.QPL"
49 # vim:set ts=2 sw=2 et: