38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
# Template file for 'hamlib'
|
|
pkgname=hamlib
|
|
version=4.5.5
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --with-perl-binding --with-python-binding
|
|
--with-tcl-binding --with-xml-support"
|
|
hostmakedepends="automake libtool pkg-config python3 swig"
|
|
makedepends="gettext-devel libusb-devel libxml2-devel python3-devel readline-devel
|
|
tcl-devel"
|
|
depends="perl"
|
|
short_desc="Library to control radio transceivers and receivers"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="LGPL-2.1-or-later, GPL-2.0-or-later"
|
|
homepage="https://hamlib.github.io"
|
|
changelog="https://raw.githubusercontent.com/Hamlib/Hamlib/master/NEWS"
|
|
distfiles="https://github.com/Hamlib/Hamlib/releases/download/${version}/hamlib-${version}.tar.gz"
|
|
checksum=601c89f32ed225e9527ade3d64d0d05d23202c05ae21ffa77e59d70ee4597fcd
|
|
|
|
CFLAGS="-DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
|
|
|
|
pre_configure() {
|
|
export PYTHON_CPPFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
|
|
export PYTHON_LIBS="-L${XBPS_CROSS_BASE}/usr/lib -lpython${py3_ver}${py3_abiver}"
|
|
autoreconf -fi
|
|
}
|
|
|
|
hamlib-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|