void-packages/srcpkgs/libftdi1/template

31 lines
870 B
Bash
Raw Normal View History

2016-01-15 12:49:43 +00:00
# Template file for 'libftdi'
pkgname=libftdi1
version=1.2
revision=1
build_style=cmake
hostmakedepends="cmake"
makedepends="libusb-devel confuse-devel"
short_desc="Library to talk to FTDI chips"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2, LGPL-2"
homepage="http://www.intra2net.com/en/developer/libftdi/download.php"
distfiles="http://www.intra2net.com/en/developer/libftdi/download/${pkgname}-${version}.tar.bz2"
checksum=a6ea795c829219015eb372b03008351cee3fb39f684bff3bf8a4620b558488d6
post_extract() {
sed -i 's/LIB_SUFFIX 64/LIB_SUFFIX ""/' CMakeLists.txt
}
libftdi1-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove "usr/bin/*-config"
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
}
}