void-packages/srcpkgs/mclinker/template
2015-09-19 09:40:40 +02:00

33 lines
1,023 B
Bash

# Template file for 'mclinker'
pkgname=mclinker
version=2.10.0
revision=1
_version="${version%.*}" _version="${_version//.}"
wrksrc="$pkgname-release_${_version}"
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_${_version}.tar.gz"
checksum=b2364bb985630c0b4744d735ba0fc69d41854f947e493c61f7efb0f308143e4d
patch_args="-Np1"
nocross=yes
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"
}
}