void-packages/srcpkgs/mclinker/template
2016-04-20 10:06:37 +02:00

36 lines
1.1 KiB
Bash

# Template file for 'mclinker'
pkgname=mclinker
version=2.10.0
revision=2
_distver="${version%.*}"
_distver="${_distver//.}"
wrksrc="${pkgname}-release_${_distver}"
build_style=gnu-configure
hostmakedepends="automake libtool flex llvm"
makedepends="zlib-devel libffi-devel libedit-devel ncurses-devel llvm"
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"
checksum=b2364bb985630c0b4744d735ba0fc69d41854f947e493c61f7efb0f308143e4d
patch_args="-Np1"
nocross=yes
broken="http://build.voidlinux.eu/builders/x86_64_builder/builds/22672/steps/shell_3/logs/stdio"
pre_configure() {
sed -i 's|llvm/Option/OptParser.td|/usr/include/llvm/Option/OptParser.td|g' tools/mcld/Options.td # HACK: hardcode header location
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"
}
}