summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 17 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 62dfbc492b2..38c449cc072 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
pkgname=libnfc-nci-lpcusbsio
pkgver=2.4.1
-pkgrel=3
-pkgdesc="Linux NFC stack for NCI based NXP NFC Controllers (PN7150, PN7120). lpcusbsio USB tml."
+pkgrel=4
+pkgdesc="Linux NFC stack for NCI based NXP NFC Controllers (PN7150, PN7120). For USB transport."
arch=('x86_64')
url="https://github.com/NXPNFCLinux/linux_libnfc-nci/"
license=('APACHE')
@@ -14,17 +14,22 @@ conflicts=('libnfc-nci-i2c' 'libnfc-nci-alt')
source=("git+https://github.com/NXPNFCLinux/linux_libnfc-nci#commit=2aff6448cf6a86897d3d1bacb0a0943a594aa9ce"
"01-fix-tml-linker-errors.patch"
"02-fix-llcp-linker-errors.patch"
- "03-udev-rules.patch")
+ "03-udev-rules.patch"
+ "04-udev-rules-automake.patch")
sha256sums=('SKIP'
'c9992a8449de8ece0324cbf180a24f8bcab82cb7f51832d3d80958c0968a7575'
'c6ece172b50e1d1070a979fbafa2e9ee7f7f7b92d583fa38f8ea433123a9ef4d'
- '0a44a4a1c0e429b6415332ededfc36111d6832a98c0717a996c8f862ba623e77')
+ '7aca0dfecb6bb9455a82b46a52dc653f1143493839585429876da31c1e8356a4'
+ '8d12d95b11edf634fca2f0289b58a063bc2a6be12ec5fbc2c9b06c63e676f46d')
prepare() {
cd "$srcdir/linux_libnfc-nci"
patch -p1 -i "$srcdir/01-fix-tml-linker-errors.patch"
patch -p1 -i "$srcdir/02-fix-llcp-linker-errors.patch"
patch -p1 -i "$srcdir/03-udev-rules.patch"
+ patch -p1 -i "$srcdir/04-udev-rules-automake.patch"
+ mv $srcdir/linux_libnfc-nci/src/halimpl/pn54x/tml/lpcusbsio/97-lpcusbsio-hid.rules \
+ $srcdir/linux_libnfc-nci/src/halimpl/pn54x/tml/lpcusbsio/60-lpcusbsio-hid.rules
}
build() {
@@ -40,3 +45,11 @@ package() {
make DESTDIR="$pkgdir/" install
rm -rf $pkgdir/usr/sbin
}
+
+post_install() {
+ udevadm control --reload
+}
+
+post_remove() {
+ udevadm control --reload
+}