aboutsummaryrefslogtreecommitdiffstats
path: root/testing/binutils-avr/APKBUILD
diff options
context:
space:
mode:
authorStefan Wagner <stw@bit-strickerei.de>2016-05-23 00:15:02 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-03 08:40:43 +0000
commitd91375b1f8ac1b1e5c3b59c54bca68f3b021953f (patch)
treee81324dabac5001cb9877e99a867d06e3f561e16 /testing/binutils-avr/APKBUILD
parentfda4d5a7a133a6d9fa83ce27d42fb28d683af150 (diff)
downloadaports-d91375b1f8ac1b1e5c3b59c54bca68f3b021953f.tar.bz2
aports-d91375b1f8ac1b1e5c3b59c54bca68f3b021953f.tar.xz
testing/binutils-avr: new aport
Tools necessary to build programs for AVR targets http://www.gnu.org/software/binutils/
Diffstat (limited to 'testing/binutils-avr/APKBUILD')
-rw-r--r--testing/binutils-avr/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/binutils-avr/APKBUILD b/testing/binutils-avr/APKBUILD
new file mode 100644
index 0000000000..8688240f27
--- /dev/null
+++ b/testing/binutils-avr/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
+pkgname=binutils-avr
+pkgver=2.25.1
+pkgrel=0
+pkgdesc="Tools necessary to build programs for AVR targets"
+url="http://www.gnu.org/software/binutils/"
+makedepends="gettext libtool autoconf automake"
+arch="all"
+license="GPL2 GPL3+ LGPL2 BSD"
+subpackages="$pkgname-doc"
+source="http://ftp.gnu.org/gnu/binutils/binutils-$pkgver.tar.bz2
+ binutils-ld-fix-static-linking.patch
+ hash-style-gnu.patch"
+
+builddir="$srcdir/binutils-$pkgver"
+_workingdir="$srcdir/binutils-build"
+
+build() {
+ mkdir "$_workingdir" || return 1
+ cd "$_workingdir"
+ "$builddir"/configure \
+ --build="$CBUILD" \
+ --target=avr \
+ --with-lib-path=/usr/lib \
+ --prefix=/usr \
+ --enable-ld=default \
+ --enable-gold=yes \
+ --enable-plugins \
+ --disable-multilib \
+ --disable-werror \
+ --disable-nls \
+ || return 1
+ make -j1 tooldir=/usr
+}
+
+package() {
+ cd "$_workingdir"
+ make tooldir=/usr install DESTDIR="$pkgdir" || return 1
+ rm -rf "$pkgdir"/usr/share/info
+ for bin in ar as nm objcopy objdump ranlib strip readelf; do
+ rm -f "$pkgdir"/usr/bin/"$bin"
+ done
+}
+
+md5sums="ac493a78de4fee895961d025b7905be4 binutils-2.25.1.tar.bz2
+c9f308494b87c243f121a56d58f2da87 binutils-ld-fix-static-linking.patch
+686071a371b6d7aaad86c3a5c09ba6d3 hash-style-gnu.patch"
+sha256sums="b5b14added7d78a8d1ca70b5cb75fef57ce2197264f4f5835326b0df22ac9f22 binutils-2.25.1.tar.bz2
+d5c5581d0ba04ef2e3690f6fb57435bf7ce343f2376fe972a2a693c5429eec9c binutils-ld-fix-static-linking.patch
+d30633153c41f0a59956f4d49ad12c0b53dabfd9f48175d0db0a1a5f2263cdfc hash-style-gnu.patch"
+sha512sums="0b36dda0e6d32cd25613c0e64b56b28312515c54d6a159efd3db9a86717f114ab0a0a1f69d08975084d55713ebaeab64e4085c9b3d1c3fa86712869f80eb954d binutils-2.25.1.tar.bz2
+ecee33b0e435aa704af1c334e560f201638ff79e199aa11ed78a72f7c9b46f85fbb227af5748e735fd681d1965fcc42ac81b0c8824e540430ce0c706c81e8b49 binutils-ld-fix-static-linking.patch
+24e853bf4b58621a77921087e599da2ace47ba3079e2d50fb5d08ae399be5f060c5fdd7f65257bcc0526aebc66e68b98aafd45d714c035da8ea2bdc3d8d4e375 hash-style-gnu.patch"