mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
44 lines
1 KiB
Text
44 lines
1 KiB
Text
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
|
|
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
|
|
pkgname=libgusb
|
|
pkgver=0.4.5
|
|
pkgrel=0
|
|
pkgdesc="GLib wrapper around libusb"
|
|
url="https://github.com/hughsie/libgusb"
|
|
arch="all"
|
|
license="LGPL-2.1-or-later"
|
|
makedepends="
|
|
eudev-dev
|
|
glib-dev
|
|
gobject-introspection-dev
|
|
json-glib-dev
|
|
libusb-dev
|
|
meson
|
|
py3-setuptools
|
|
python3-dev
|
|
vala
|
|
"
|
|
checkdepends="hwids-usb"
|
|
subpackages="$pkgname-dev"
|
|
source="libgusb-$pkgver.tar.gz::https://github.com/hughsie/libgusb/archive/$pkgver.tar.gz"
|
|
options="!check" # libusb needs hardware to run without umockdev
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Db_lto=true \
|
|
-Ddocs=false \
|
|
. output
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --no-rebuild --print-errorlogs -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
034399f85916f76efc8316d5ca1d101cc8acd22ab928add32df9037d94798eaba5b1d5852aa10a9e4ae80d073a0d7d00626ab293817e66091c850d6847a61319 libgusb-0.4.5.tar.gz
|
|
"
|