diff options
Diffstat (limited to 'main/binutils/APKBUILD')
-rw-r--r-- | main/binutils/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/binutils/APKBUILD b/main/binutils/APKBUILD new file mode 100644 index 0000000000..60f58aecde --- /dev/null +++ b/main/binutils/APKBUILD @@ -0,0 +1,38 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=binutils +pkgver=2.21.1 +pkgrel=0 +pkgdesc="Tools necessary to build programs" +url="http://www.gnu.org/software/binutils/" +source="http://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2" +depends= +makedepends="bison flex texinfo zlib-dev" +arch="all" +license="GPL" +subpackages="$pkgname-doc" + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure --prefix=/usr \ + --mandir /usr/share/man \ + --build ${CHOST:-i486-alpine-linux-uclibc} \ + --infodir /usr/share/info \ + --disable-multilib \ + --enable-shared \ + --enable-64-bit-bfd \ + --disable-werror \ + --disable-nls + + make || return 1 +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make install DESTDIR="$pkgdir" + if [ -d "$pkgdir"/usr/lib64 ]; then + mv "$pkgdir"/usr/lib64/* "$pkgdir"/usr/lib/ + rmdir "$pkgdir"/usr/lib64 + fi + rm "$pkgdir"/usr/lib/*.la || return 1 +} +md5sums="a22801a9cad45c85e9ff6afc10537d72 binutils-2.21.1.tar.bz2" |