Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add libstdc++ package definition #45

Merged
merged 1 commit into from
Nov 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions packages/libstdc++/Bldrfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
pkg_name=libstdc++
pkg_version=5.2.1
pkg_license=('GPLv2' 'LGPLv2.1')
pkg_source=http://ftp.gnu.org/gnu/libc/${pkg_name}-${pkg_version}.tar.bz2
pkg_deps=(glibc libgcc)
pkg_shasum=d17a843419530035e73f65e8ecf75e3bb7ea9548d3469bd67f3f769a03ee39c1
pkg_lib_dirs=(usr/lib/x86_64-linux-gnu)
pkg_gpg_key=3853DA6B

download() {
wget http://releases.nixos.org/patchelf/patchelf-0.8/patchelf-0.8.tar.gz -O /tmp/patchelf-0.8.tar.gz
}

verify() {
return 0
}

unpack() {
pushd /tmp > /dev/null
tar xzfv patchelf-0.8.tar.gz
popd > /dev/null
}

prepare() {
pkg_dirname="$pkg_name-$pkg_version"
mkdir -p $BLDR_SRC_CACHE/$pkg_dirname
pushd /tmp/patchelf-0.8 > /dev/null
./configure
make install
popd > /dev/null
}

build() {
dpkg -L libstdc++6 > $BLDR_SRC_CACHE/$pkg_dirname/files
}

install() {
mkdir -p $pkg_path
rsync -vaP --no-dirs --files-from=$BLDR_SRC_CACHE/$pkg_dirname/files / $pkg_path
glibc=$(latest_package "bldr/glibc")
libgcc=$(latest_package "bldr/libgcc")
for lib in "$pkg_path/usr/lib/x86_64-linux-gnu/*"; do
patchelf --set-rpath "$glibc/lib/x86_64-linux-gnu:$libgcc/lib/x86_64-linux-gnu" $lib
done
}

strip_binaries() {
return 0
}