updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libexception / PKGBUILD
blob3137057632ef3cccd7aa2a991c93f1c13a415a7c
1 # Maintainer: napa3um@gmail.com
3 pkgname=libexception
4 pkgver=0.2_beta
5 pkgrel=2
6 arch=(i686)
7 pkgdesc="Exception handling library for C"
8 license=(custom)
9 url="http://bb.xnull.de/projects/libexception/"
10 source=(http://bb.xnull.de/projects/libexception/dist/libexception-$pkgver.tar.bz2)
11 md5sums=('b27f7b97da94f2f44c1c9f3f4d701ef0')
12 options=(!strip)
14 build()
16   cd $srcdir/libexception-$pkgver
17   ./autogen.sh
18   ./configure --prefix=/usr --enable-static || return 1
19   make || return 1
21 #dirty hack for static version (--enable-static not work):
22   mkdir $pkgdir/usr
23   mkdir $pkgdir/usr/include
24   mkdir $pkgdir/usr/lib
25   ar -r $pkgdir/usr/lib/libexception.a $srcdir/libexception-$pkgver/src/tryenv.o $srcdir/libexception-$pkgver/src/exception.o
26   install $srcdir/libexception-$pkgver/src/exception.h $pkgdir/usr/include/exception.h