48 lines
1.1 KiB
Bash
48 lines
1.1 KiB
Bash
# Template file for 'libxo'
|
|
pkgname=libxo
|
|
version=1.6.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
short_desc="Library for programs to output XML, JSON and HTML"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://juniper.github.io/libxo/libxo-manual.html"
|
|
distfiles="https://github.com/Juniper/libxo/releases/download/${version}/libxo-${version}.tar.gz"
|
|
checksum=9f2f276d7a5f25ff6fbfc0f38773d854c9356e7f985501627d0c0ee336c19006
|
|
|
|
case $XBPS_TARGET_MACHINE in
|
|
*-musl)
|
|
makedepends+=" musl-legacy-compat"
|
|
;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense Copyright
|
|
|
|
rm -rf ${DESTDIR}/usr/share/doc/libxo/Copyright
|
|
}
|
|
|
|
libxo-devel_package() {
|
|
depends="libxo-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/libxo-config
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/man/man3
|
|
vmove "usr/lib/*.so"
|
|
vmove "usr/lib/*.a"
|
|
vmove usr/share/libxo
|
|
vmove "usr/lib/libxo/encoder/*.so"
|
|
vmove "usr/lib/libxo/encoder/*.a"
|
|
}
|
|
}
|
|
|
|
libxo-progs_package() {
|
|
short_desc+=" - programs and utilities"
|
|
pkg_install() {
|
|
vmove usr/bin
|
|
vmove usr/share/man/man1
|
|
}
|
|
}
|