diff --git a/srcpkgs/libelf-devel b/srcpkgs/libelf-devel new file mode 120000 index 00000000000..6e3ed115de7 --- /dev/null +++ b/srcpkgs/libelf-devel @@ -0,0 +1 @@ +libelf \ No newline at end of file diff --git a/srcpkgs/libelf/depends b/srcpkgs/libelf/depends new file mode 100644 index 00000000000..eacf465f5b2 --- /dev/null +++ b/srcpkgs/libelf/depends @@ -0,0 +1,2 @@ +abi_depends=">=0.8.13" +api_depends="${abi_depends}" diff --git a/srcpkgs/libelf/libelf-devel.template b/srcpkgs/libelf/libelf-devel.template new file mode 100644 index 00000000000..c5738250797 --- /dev/null +++ b/srcpkgs/libelf/libelf-devel.template @@ -0,0 +1,17 @@ +# Template file for 'libelf-devel'. +# +short_desc="${sourcepkg} - development files" +long_desc="${long_desc} + + This package contains files for development: headers, static libs, etc." + +Add_dependency run glibc-devel +Add_dependency run libelf + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/*.a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib +} diff --git a/srcpkgs/libelf/template b/srcpkgs/libelf/template new file mode 100644 index 00000000000..a66207c62cf --- /dev/null +++ b/srcpkgs/libelf/template @@ -0,0 +1,19 @@ +# Template build file for 'libelf' +pkgname=libelf +version=0.8.13 +distfiles="http://www.mr511.de/software/$pkgname-$version.tar.gz" +build_style=gnu_configure +configure_args="--enable-gnu-names --enable-compat --enable-shared" +make_install_target="prefix=$XBPS_DESTDIR/$pkgname-$version/usr install" +short_desc="ELF object file access library" +maintainer="Juan RP " +checksum=591a9b4ec81c1f2042a97aa60564e0cb79d041c52faa7416acb38bc95bd2c76d +long_desc=" + The elf library provides routines to access, and manipulate, Elf object files. + It is still not complete, but is required for a number of programs, such as + Eli (a state of the art compiler generation system), and Elk (the Extension + Language Kit - an implementation of the Scheme programming language.)" + +base_chroot=yes +subpackages="$pkgname-devel" +Add_dependency run glibc diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 7fa093f1ae3..a7cff56cfd8 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -643,3 +643,4 @@ libopenmpi_malloc.so openmpi openmpi-devel libopen-pal.so openmpi openmpi-devel libopen-rte.so openmpi openmpi-devel libmtp.so libmtp libmtp-devel +libelf.so libelf libelf-devel