void-packages/srcpkgs/mclinker/template
2015-08-30 20:27:47 +02:00

32 lines
885 B
Bash

# Template file for 'mclinker'
pkgname=mclinker
version=2.9.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"
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=af09905283840d3c3f29a202889711eec7fafd6090e09d3d71c9fdba5e83f4a4
patch_args="-Np1"
nocross=yes
pre_configure() {
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"
}
}