34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
# Template file for 'libsigrok'
|
|
pkgname=libsigrok
|
|
version=0.5.2
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="pkg-config doxygen python3"
|
|
makedepends="glib-devel libzip-devel glibmm-devel libserialport-devel
|
|
libusb-devel libftdi1-devel"
|
|
short_desc="C library for talking to hardware"
|
|
maintainer="lemmi <lemmi@nerd2nerd.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://sigrok.org/"
|
|
distfiles="https://sigrok.org/download/source/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=4d341f90b6220d3e8cb251dacf726c41165285612248f2c52d15df4590a1ce3c
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
i686*|x86_64*|ppc64*) makedepends+=" libieee1284-devel";;
|
|
esac
|
|
|
|
post_install() {
|
|
vinstall contrib/60-libsigrok.rules 0644 /usr/lib/udev/rules.d
|
|
vinstall contrib/61-libsigrok-uaccess.rules 0644 /usr/lib/udev/rules.d
|
|
}
|
|
|
|
libsigrok-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|