updated on Thu Jan 5 13:17:10 UTC 2012
[aur-mirror.git] / ubiqx / PKGBUILD
blob66bf5f0d010ffc8df167f9969a9f0c4e342428b5
1 # Maintainer:  perlawk
3 pkgname=ubiqx  
4 pkgver=0.11
5 pkgrel=1 
6 pkgdesc="A C data structure library, include singly/double link list, sparse array, splay tree, AVL tree, bin tree. AmigaOS, Linux, OpenBSD, Irix, etc"
7 url="http://ubiqx.org/modules.html"
8 arch=(`arch`)
9 license=('GPL')
10 depends=()
11 makedepends=()
12 conflicts=()
13 replaces=()
14 backup=()
15 install=
16 source=(http://ubiqx.org/pub/libubiqx.tgz)
17 md5sums=('89e46c3958e067d9325f7da47f9f145f')
18 build() {
19   cd $startdir/src/$pkgname
20   make libubiqx.a || return 1
21   install -m755 -d $pkgdir/usr/lib
22   install -m755 -d $pkgdir/usr/include/ubiqx
23   install -m755 -t $pkgdir/usr/lib libubiqx.a
24   install -m755 -t $pkgdir/usr/include/ubiqx library/*h
26   make clean
27   sed -e 's/CFLAGS = -O2/CFLAGS = -O2 -fPIC/' Makefile > .tmp
28   mv .tmp Makefile
29   make all
30   cc -shared -o libubiqx.so library/*o
31   install -m755 -t $pkgdir/usr/lib libubiqx.so