# Maintainer: Natanael Copa pkgname=uclibc++ pkgver=0.2.2 pkgrel=4 pkgdesc="Embedded C++ library" url="http://cxx.uclibc.org/" license='GPL-2' depends= makedepends= subpackages="$pkgname-dev" source="http://cxx.uclibc.org/src/uClibc++-$pkgver.tar.bz2 001-path_to_make.patch 002-path_to_bash.patch 003-cp_command.patch 004-ccache_fixes.patch 005-wrapper.patch 006-eabi_fix.patch 007-numeric_limits.patch 008-integer_width.patch 900-dependent_exception.patch associative_base.patch uclibc++-gcc-4.3.patch uclibc++config " build() { cd "$srcdir/uClibc++-$pkgver" cp ../uclibc++config .config make oldconfig for i in ../*.patch; do if ! patch -p1 < $i; then error "failed to apply $i" return 1 fi done sed -i -e 's:bin/bash:bin/sh:' bin/Makefile scripts/find_lib* make || return 1 make DESTDIR="$pkgdir/" install } dev() { depends="$pkgname g++" mkdir -p "$subpkgdir" # move everything to -dev package except *.so files mv "$pkgdir"/* "$subpkgdir"/ mkdir -p "$pkgdir"/usr/lib/ mv "$subpkgdir"/usr/lib/*.so* \ "$pkgdir"/usr/lib/ } md5sums="1ceef3209cca88be8f1bd9de99735954 uClibc++-0.2.2.tar.bz2 ce1016fb83c23c83486f35f4cd1b64ab 001-path_to_make.patch 42954542f9f3c5dd6febb73d2db7f1d0 002-path_to_bash.patch 8068b394de053ed94a742d1ed9657b99 003-cp_command.patch 363dc1cd86052f44212c2f3ac15926da 004-ccache_fixes.patch 3689f8d77984ca66554e14cacbeb796c 005-wrapper.patch 99e625748c0e6d5fc7cef8484cbac587 006-eabi_fix.patch d335b8f1c9d4682a220a082a371277e4 007-numeric_limits.patch 2c431d4ad46a244f2f50baf40b85f7d2 008-integer_width.patch 4e9c416c2a107f7d814f938fa57901a5 900-dependent_exception.patch 5689baa3f3bf8488c0a5d27a690d30fa associative_base.patch 4c7b499e4697225378acef25f6364e9b uclibc++-gcc-4.3.patch 2f573c1e2a0c7a320ea4685cc3ce9e2a uclibc++config"