summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2019-12-26 14:07:13 -0500
committerChris Severance2019-12-26 14:07:13 -0500
commit2b9164909ee632a671dfbf55bd3ad1cab2b7c112 (patch)
tree91a3f84b21853015f4f2d3940cb4b70c190a3c8f
parent4e7d66c94c4603581d574b0dbea20443a1403660 (diff)
downloadaur-digi-dgnc.tar.gz
autu: Update to 1.3.29-3
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD12
2 files changed, 10 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d64bb25973d..b5c69f52720 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,7 @@
-# Generated by mksrcinfo v8
-# Mon Apr 1 01:08:46 UTC 2019
pkgbase = digi-dgnc
pkgdesc = tty driver for Digi Neo and legacy ClassicBoard PCI PCIe RS-232 serial port
pkgver = 1.3.29
- pkgrel = 2
+ pkgrel = 3
url = https://www.digi.com/
install = digi-dgnc-install.sh
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 5f1341bde82..d04989e1514 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,7 +17,7 @@ pkgname='digi-dgnc'
#_pkgver='1.3-28'; _dl='40002369_G.tgz'
_pkgver='1.3-29'; _dl='40002369_H.src.rpm'
pkgver="${_pkgver//-/.}"
-pkgrel='2'
+pkgrel='3'
pkgdesc='tty driver for Digi Neo and legacy ClassicBoard PCI PCIe RS-232 serial port'
arch=('i686' 'x86_64')
url='https://www.digi.com/'
@@ -126,7 +126,13 @@ prepare() {
test ! -s 'scripts/postinstall.Arch' || echo "${}"
# new folder in gcc 8
- sed -e 's/^clean:$/&\n\trm -f .cache.mk/g' -i driver/*/Makefile*
+ sed -e 's/^clean:$/&\n\trm -f .cache.mk/g' \
+ -e '# Use built in clean' \
+ -e 's:clean:clean_local:g' \
+ -e 's~^clean_local:~clean:\n\tmake -C @KERNEL_HEADERS@ SUBDIRS=$$PWD clean\n\n&~g' \
+ -e '# Kernel 5.4 compatible' \
+ -e 's: SUBDIRS=\([^ ]\+\) : M=\1&:g ' \
+ -i driver/*/Makefile*
# Branding in dmesg
sed -e '/^static int dgnc_start/,/^}$/ s@^\(\s\+\)APR(("For@'"\1APR((DRVSTR\": Arch Linux https://aur.archlinux.org/packages/${pkgname}/\"));\n&@g" \
@@ -273,7 +279,7 @@ EOF
-e '# Anything using these must fail' \
-e '/MOD = \// s:^:#:g' \
-i "${_dkms}/driver/build/Makefile"
- make -C "${_dkms}/driver/build/" clean
+ make -C "${_dkms}/driver/build/" clean KERNELRELEASE="$(uname -r)" MYPWD="${_dkms}/driver/build/"
fi
set +u
}