void-packages/srcpkgs/mclinker/template

37 lines
1.1 KiB
Bash
Raw Normal View History

2015-08-05 15:03:17 +02:00
# Template file for 'mclinker'
pkgname=mclinker
2015-09-19 09:31:48 +02:00
version=2.10.0
revision=2
_distver="${version%.*}"
_distver="${_distver//.}"
wrksrc="${pkgname}-release_${_distver}"
2015-08-05 15:03:17 +02:00
build_style=gnu-configure
hostmakedepends="automake libtool flex llvm"
2015-09-19 09:31:48 +02:00
makedepends="zlib-devel libffi-devel libedit-devel ncurses-devel llvm"
2015-08-05 15:03:17 +02:00
short_desc="LLVM Linker for Mobile Computing"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="BSD"
homepage="https://github.com/$pkgname/$pkgname"
distfiles="$homepage/archive/release_${_distver}.tar.gz"
2015-09-19 09:31:48 +02:00
checksum=b2364bb985630c0b4744d735ba0fc69d41854f947e493c61f7efb0f308143e4d
2015-08-05 15:03:17 +02:00
patch_args="-Np1"
nocross=yes
2016-04-20 10:06:37 +02:00
broken="http://build.voidlinux.eu/builders/x86_64_builder/builds/22672/steps/shell_3/logs/stdio"
2015-08-05 15:03:17 +02:00
pre_configure() {
2015-09-19 09:31:48 +02:00
sed -i 's|llvm/Option/OptParser.td|/usr/include/llvm/Option/OptParser.td|g' tools/mcld/Options.td # HACK: hardcode header location
2015-08-05 15:03:17 +02:00
sed -i '/unittests/d' configure.ac
sed -i 's/unittests//' Makefile.am
sed -i '/unittests/d' Makefile.am
autoreconf -fi
}
mclinker-devel_package() {
short_desc+=" - devel files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}