37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
# Template file for 'libgusb'
|
|
pkgname=libgusb
|
|
version=0.3.4
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="-Ddocs=false -Dgir=$(vopt_if gir true false)
|
|
-Dvapi=$(vopt_if vala true false)"
|
|
hostmakedepends="pkg-config $(vopt_if vala vala)"
|
|
makedepends="libglib-devel libusb-devel libgudev-devel $(vopt_if vala vala-devel)
|
|
usbutils"
|
|
short_desc="GLib wrapper around libusb1"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://github.com/hughsie/libgusb"
|
|
changelog="https://raw.githubusercontent.com/hughsie/libgusb/master/NEWS"
|
|
distfiles="http://people.freedesktop.org/~hughsient/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=581fd24e12496654b9b2a0732f810b554dfd9212516c18c23586c0cd0b382e04
|
|
|
|
build_options="gir vala"
|
|
build_options_default="gir vala"
|
|
|
|
libgusb-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}-${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|