New package: u2f-hidraw-policy-1.0.2

This commit is contained in:
Toyam Cox 2016-08-16 18:48:58 -04:00
parent fb653a6364
commit b180b6cd21
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- Makefile 2015-10-30 14:48:49.000000000 -0400
+++ Makefile.bck 2016-08-16 18:38:41.989106570 -0400
@@ -3,7 +3,7 @@
CFLAGS := -O2 -Wall
u2f_hidraw_id: u2f_hidraw_id.c
- $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^ `pkg-config --cflags --libs libudev`
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -o $@ $^ `pkg-config --cflags --libs libudev` $(LDFLAGS)
.PHONY: install
install: all

View file

@ -0,0 +1,19 @@
# Template file for 'u2f-hidraw-policy'
pkgname=u2f-hidraw-policy
version=1.0.2
revision=1
build_style=gnu-makefile
hostmakedepends="pkg-config"
makedepends="eudev-libudev-devel"
short_desc="Udev helper and rule to identify U2F tokens"
maintainer="Toyam Cox <Vaelatern@gmail.com>"
license="LGPL-2"
homepage="https://github.com/amluto/u2f-hidraw-policy"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=50e327a9df3dd3db3b292af41fb119cc4c8d9bc29abddfb442e972053bf5e6d1
post_install() {
vmkdir usr
cp -r "${DESTDIR}/lib" "${DESTDIR}/usr"
rm -rf "${DESTDIR}/lib"
}