Fix location of udev rules

This commit is contained in:
Alexis Polti 2019-03-31 07:02:08 +02:00
parent 04d5fd8031
commit a0e89c0b4d
2 changed files with 5 additions and 5 deletions

View file

@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
# Wed Mar 27 17:26:43 UTC 2019
# Sun Mar 31 04:58:12 UTC 2019
pkgbase = jlink-software-and-documentation
pkgdesc = Segger JLink software & documentation pack for Linux
pkgver = 6.44d
pkgrel = 0
pkgrel = 1
epoch = 16
url = https://www.segger.com/jlink-software.html
install = jlink-software-and-documentation.install

View file

@ -3,7 +3,7 @@
pkgname=jlink-software-and-documentation
pkgver=6.44d
pkgrel=0
pkgrel=1
epoch=16
pkgdesc="Segger JLink software & documentation pack for Linux"
arch=('i686' 'x86_64')
@ -36,7 +36,7 @@ package(){
"${pkgdir}/usr/share/licenses/${pkgname}" \
"${pkgdir}/usr/lib/" \
"${pkgdir}/usr/bin/" \
"${pkgdir}/etc/udev/rules.d/" \
"${pkgdir}/usr/lib/udev/rules.d/" \
"${pkgdir}/usr/share/doc/${pkgname}/"
cd "${srcdir}/JLink"
@ -50,7 +50,7 @@ package(){
# Create links where needed
ln -s /opt/SEGGER/JLink/Doc/LicenseIncGUI.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
sed -i 's/0x//g' 99-jlink.rules
install -Dm644 99-jlink.rules "${pkgdir}/etc/udev/rules.d/"
install -Dm644 99-jlink.rules "${pkgdir}/usr/lib/udev/rules.d/"
for f in J*; do
ln -s /opt/SEGGER/JLink/"$f" "${pkgdir}/usr/bin"