summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJiuyang liu2020-01-04 14:59:04 +0000
committerJiuyang liu2020-01-04 14:59:04 +0000
commit8c22fd3c81e1b3aac826a465008bf8dd3b61e544 (patch)
treeb56f6dc4552dd795fe6d4f8bf15b7432f3e7eb6f /PKGBUILD
parent2110e7adbb811d9bcf06a5ce7f979fda9aa9ecd3 (diff)
downloadaur-xilinx-hw-server.tar.gz
add udev rules
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 133687ff8ef4..de47bc27e30a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -21,6 +21,7 @@ prepare() {
cd $srcdir/$_dirname
cp $srcdir/install_config.txt ./
sed -i 5iDestination=${srcdir}/extracted install_config.txt
+ export _JAVA_OPTIONS=-Duser.home=/tmp
}
build() {
cd $srcdir/$_dirname
@@ -29,8 +30,11 @@ build() {
rm -rf ~/.Xilinx
}
package() {
- mkdir -p ${pkgdir}/opt/xilinx/HWSRVR
+ mkdir -p ${pkgdir}/opt/xilinx/HWSRVR/
mkdir -p ${pkgdir}/usr/lib/systemd/system/
+ mkdir -p ${pkgdir}/etc/udev/rules.d/
mv ${srcdir}/extracted/HWSRVR/${pkgver}/* ${pkgdir}/opt/xilinx/HWSRVR/
+ cp ${pkgdir}/opt/xilinx/HWSRVR/data/xicom/cable_drivers/lin64/install_script/install_drivers/*.rules ${pkgdir}/etc/udev/rules.d/
+ chmod 644 ${pkgdir}/etc/udev/rules.d/*
install -Dm644 hwserver.service ${pkgdir}/usr/lib/systemd/system/hwserver.service
}