diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-07-23 18:24:11 +0000 |
commit | 2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd (patch) | |
tree | a63d3b3b1c89018b5419358eed5c2bb0acf1cd92 /main/uclibc++/APKBUILD | |
parent | e374901731eb35599bd6735de4dd38560e3a79b8 (diff) | |
download | aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.bz2 aports-2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd.tar.xz |
move core/* to main/
added maintainer to several packages as well
Diffstat (limited to 'main/uclibc++/APKBUILD')
-rw-r--r-- | main/uclibc++/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/uclibc++/APKBUILD b/main/uclibc++/APKBUILD new file mode 100644 index 0000000000..e6545e482f --- /dev/null +++ b/main/uclibc++/APKBUILD @@ -0,0 +1,47 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=uclibc++ +pkgver=0.2.2 +pkgrel=3 +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 + 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 +5689baa3f3bf8488c0a5d27a690d30fa associative_base.patch +4c7b499e4697225378acef25f6364e9b uclibc++-gcc-4.3.patch +2f573c1e2a0c7a320ea4685cc3ce9e2a uclibc++config" |