diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -9,13 +9,14 @@ _opt_DKMS=1 # This can be toggled between installs set -u pkgname='moxa-mxu11x0' pkgver='1.4' -pkgrel='1' +pkgrel='2' pkgdesc='kernel module driver for Moxa UPort USB serial 1110 1130i 1150i RS-232 422 485' arch=('i686' 'x86_64') url='https://www.moxa.com/support/support_home.aspx' license=('GPL') depends=('glibc') optdepends=('setserial: set RS-422 485 modes') +options=('!strip') install="${pkgname}-install.sh" _srcdir="${pkgname#*-}" source=("https://www.moxa.com/drivers/IDC_SW/UPort/Driver/UPort%201100%20Series/Linux/V${pkgver}/legacy/driv_linux_kernel2.x_uport1p_v${pkgver}_build_18050314.tgz") @@ -38,9 +39,9 @@ _install_check() { for _ckvar in '_pkgname' '_modulename' '_builtinmod'; do _ckline="${_ckvar}='${!_ckvar}'" if ! grep -q "^${_ckline}"'$' "${startdir}/${install}"; then + set +u msg "${install} must be fixed" echo "${_ckline}" - set +u false fi done @@ -55,12 +56,12 @@ prepare() { sed -e 's:/lib/:/usr/lib/:g' -i driver/*/Makefile driver/*/mxconf # Fix umbrella Makefile - sed -e '# Too quiet' \ - -e '/make / s: -s::g' \ + sed -e '# Disable silent' \ + -e '/make / s:\s\+-s::g' \ -e '# Disable kernel 2.4 detection' \ -e '/^KERNEL_VERSION_MAJOR_NUMBER/,/^$/ s:^.:#&:g' \ -e '# Improve chdir technique' \ - -e 's:^.*@cd.*$:#&-:g' \ + -e 's:^\t@cd .*$:#&-:g' \ -e 's:^\tmake:\t@make -C $(DRIVER_PATH):g' \ -i 'Makefile' @@ -125,7 +126,18 @@ package() { # Automatically generated by ${pkgname}-${pkgver} PKGBUILD from Arch Linux AUR # https://aur.archlinux.org/ -blacklist ${_builtinmod} +# This will kill other ti devices +#blacklist ${_builtinmod} + +# Override alias list in ti_usb_3410_5052 +# Moxa 1110 1130 1150 1151 1131 +alias usb:v110Ap1151d*dc*dsc*dp*ic*isc*ip*in* mxu11x0 +alias usb:v110Ap1150d*dc*dsc*dp*ic*isc*ip*in* mxu11x0 +alias usb:v110Ap1131d*dc*dsc*dp*ic*isc*ip*in* mxu11x0 +alias usb:v110Ap1130d*dc*dsc*dp*ic*isc*ip*in* mxu11x0 +alias usb:v110Ap1110d*dc*dsc*dp*ic*isc*ip*in* mxu11x0 +# This prefers the moxa driver over the ti driver for boot and hotplug +softdep ${_builtinmod} pre: ${_modulename} EOF ) "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf" @@ -149,7 +161,6 @@ CLEAN[0]="make -j1 -C 'driver/kernel2.6' clean" DEST_MODULE_LOCATION[0]="/kernel/drivers/usb/serial" EOF ) "${_dkms}/dkms.conf" - install -dm755 "${_dkms}/driver/" cp -pr 'driver/' "${_dkms}/" rm -r "${_dkms}/driver/kernel2.4" rm "${_dkms}/driver/kernel2.6/mxconf" |