updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / ustl / PKGBUILD
blob11f899039aeaedb16eb4add7e9ff69c1cab99196
1 # Maintainer: Luca Bennati <lucak3 AT gmail DOT com>
3 pkgname=ustl
4 pkgver=1.5
5 pkgrel=1
6 pkgdesc="The small STL C++ library"
7 arch=('i686' 'x86_64')
8 url="http://ustl.sourceforge.net/"
9 license=('MIT')
10 source=("http://downloads.sf.net/sourceforge/${pkgname}/${pkgname}-${pkgver}.tar.bz2")
11 md5sums=('df48fd261e38ccb906c08bcb393af877')
13 build() {
14   cd "${srcdir}/${pkgname}-${pkgver}"
16   ./configure --prefix=/usr \
17     --with-static
19   make
20   #make html
23 check() {
24   cd "${srcdir}/${pkgname}-${pkgver}"
26   make -k check
29 package() {
30   cd "${srcdir}/${pkgname}-${pkgver}"
32   sed -i -e '71,$ s/\$@/\$\(DESTDIR\)\$@/' \
33     -e '93 s/@;.*/@\)/' Makefile
35   make DESTDIR="${pkgdir}" install
36   ln -s "/usr/lib/lib${pkgname}.so.${pkgver}" "${pkgdir}/usr/lib/lib${pkgname}.so"
38   # TODO: documentation
41 # vim:set ts=2 sw=2 et: