Cleanup wrong location of ETC/J*

This commit is contained in:
Alexis Polti 2020-07-03 17:42:02 +02:00
parent 3b58b7ce20
commit 3b41ad6d8a
2 changed files with 6 additions and 2 deletions

View file

@ -1,7 +1,7 @@
pkgbase = jlink-software-and-documentation
pkgdesc = Segger JLink software & documentation pack for Linux
pkgver = 6.80d
pkgrel = 0
pkgrel = 2
epoch = 28
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.80d
pkgrel=1
pkgrel=2
epoch=28
pkgdesc="Segger JLink software & documentation pack for Linux"
arch=('i686' 'x86_64')
@ -38,6 +38,7 @@ package(){
"${pkgdir}/usr/share/licenses/${pkgname}" \
"${pkgdir}/usr/lib/" \
"${pkgdir}/usr/bin/" \
"${pkgdir}/etc/" \
"${pkgdir}/usr/lib/udev/rules.d/" \
"${pkgdir}/usr/share/doc/${pkgname}/"
@ -49,6 +50,9 @@ package(){
cp --preserve=mode -r x86 "${pkgdir}/opt/SEGGER/JLink"
fi
# Cleanup old copy of /etc/
rm -f ${pkgdir}/etc/JFlash
# 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