# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=nitrokey-udev-rules
pkgver=1.0.0
pkgrel=2
pkgdesc="udev rules for Nitrokey devices"
url="https://github.com/Nitrokey/nitrokey-udev-rules"
arch="noarch"
license="CC0-1.0"
depends="udev"
source="$pkgname-$pkgver.tar.gz::https://github.com/Nitrokey/nitrokey-udev-rules/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # No code to test

replaces="libnitrokey"

package() {
	mkdir -p "$pkgdir"/usr/lib/udev/rules.d
	cp ./*.rules "$pkgdir"/usr/lib/udev/rules.d
}

sha512sums="
584fe8c1b7ac908e86359c65ae99df3946afc4d24182faaf8a8c7d552b58b4828f87f30b6b01bd3d5ebc57ef4f6c849e64ebc15bb48c76dd2aa8c18b415841b5  nitrokey-udev-rules-1.0.0.tar.gz
"
