void-packages/srcpkgs/libftdi1/template
2020-07-12 16:57:47 +02:00

29 lines
832 B
Bash

# Template file for 'libftdi'
pkgname=libftdi1
version=1.5
revision=1
build_style=cmake
makedepends="libusb-devel confuse-devel"
short_desc="Library to talk to FTDI chips"
maintainer="Leah Neukirchen <leah@vuxu.org>"
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=7c7091e9c86196148bd41177b4590dccb1510bfe6cea5bf7407ff194482eb049
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
}
}