summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrufo2020-09-13 22:57:24 +0100
committergrufo2020-09-13 22:57:24 +0100
commit9813957e1278f5b542426405bfa5a9eebbdadfd6 (patch)
tree26e42a8c006802f11af488c0ddb5be78d025d0e7
parent2e841920478b3ab4b8c7783657b50403df01e519 (diff)
downloadaur-9813957e1278f5b542426405bfa5a9eebbdadfd6.tar.gz
Almost nothing
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD20
-rwxr-xr-xfulfill_template.sh12
3 files changed, 18 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 1fa39283ccd..fbda9ad66b9 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -16,10 +16,10 @@ pkgbase = hpuld
source = fulfill_template.sh
md5sums = b20c5f5273f8d18077fe553919c7e3e9
md5sums = 5355df6678e547b4de1d9f7a4b660f10
- md5sums = b84b3eb12e61cfc874be619babf6eb11
+ md5sums = acc7e82b7052e8e16afecfef5de719f9
sha1sums = 51ed2e1265659cedf47fa5e7b9f8693a3d8cabaa
sha1sums = 030fe724635ad9d32cc5bc787b78f3a201707d26
- sha1sums = 8dc4e15836ee71c2b67e3ca54929b0380af6ae46
+ sha1sums = da9dbfcfa471f0eefc3d23a9b4e912d7a0430b5d
pkgname = hpuld
diff --git a/PKGBUILD b/PKGBUILD
index ee877e9b3ef..c2225f1e63f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -15,10 +15,10 @@ source=("https://ftp.hp.com/pub/softlib/software13/printers/MFP170/uld-hp_V${pkg
install="${pkgname}.install"
md5sums=('b20c5f5273f8d18077fe553919c7e3e9'
'5355df6678e547b4de1d9f7a4b660f10'
- 'b84b3eb12e61cfc874be619babf6eb11')
+ 'acc7e82b7052e8e16afecfef5de719f9')
sha1sums=('51ed2e1265659cedf47fa5e7b9f8693a3d8cabaa'
'030fe724635ad9d32cc5bc787b78f3a201707d26'
- '8dc4e15836ee71c2b67e3ca54929b0380af6ae46')
+ 'da9dbfcfa471f0eefc3d23a9b4e912d7a0430b5d')
# Extract only the most recent version of the `uld` package...
noextract=("uld-hp.tar.gz")
@@ -64,14 +64,14 @@ package() {
install -Dm644 "${srcdir}/${_pkgcodename}/noarch/share/ppd/"*.ppd \
"${pkgdir}/opt/hp/printer/share/ppd/"
- # Integrate the .ppd files from the alternative `uld` package
+ # Integrate the .ppd files with the alternative `uld` package
install -Dm644 "${srcdir}/uld-alt/${_pkgcodename}/noarch/share/ppd/"*.ppd \
"${pkgdir}/opt/hp/printer/share/ppd/"
install -Dm644 "${srcdir}/${_pkgcodename}/noarch/share/ppd/cms/"*.cts \
"${pkgdir}/opt/hp/printer/share/ppd/cms/"
- # Integrate the .cts files from the alternative `uld` package
+ # Integrate the .cts files with the alternative `uld` package
install -Dm644 "${srcdir}/uld-alt/${_pkgcodename}/noarch/share/ppd/cms/"*.cts \
"${pkgdir}/opt/hp/printer/share/ppd/cms/"
@@ -100,13 +100,13 @@ package() {
install -Dm644 "${srcdir}/${_pkgcodename}/noarch/etc/smfp.conf" \
"${pkgdir}/etc/sane.d/smfp-hp.conf"
- ./fulfill_template.sh "${srcdir}/${_pkgcodename}/noarch/etc/smfp.rules.in" \
- "${pkgdir}/etc/udev/rules.d/${_udev_rule_number}-smfp_${_vendor_lc}.rules" \
- "${srcdir}/${_pkgcodename}/noarch/oem.conf"
+ ./fulfill_template.sh "${srcdir}/${_pkgcodename}/noarch/oem.conf" \
+ "${srcdir}/${_pkgcodename}/noarch/etc/smfp.rules.in" \
+ "${pkgdir}/etc/udev/rules.d/${_udev_rule_number}-smfp_${_vendor_lc}.rules"
- ./fulfill_template.sh "${srcdir}/${_pkgcodename}/noarch/etc/smfp.fdi.in" \
- "${pkgdir}/usr/share/hal/fdi/policy/10osvendor/01_smfp_${_vendor_lc}.fdi" \
- "${srcdir}/${_pkgcodename}/noarch/oem.conf"
+ ./fulfill_template.sh "${srcdir}/${_pkgcodename}/noarch/oem.conf" \
+ "${srcdir}/${_pkgcodename}/noarch/etc/smfp.fdi.in" \
+ "${pkgdir}/usr/share/hal/fdi/policy/10osvendor/01_smfp_${_vendor_lc}.fdi"
# Follow the original `/opt/smfp-common/legacy_compat/.files`...
diff --git a/fulfill_template.sh b/fulfill_template.sh
index 255b3157b26..81da1f51c3d 100755
--- a/fulfill_template.sh
+++ b/fulfill_template.sh
@@ -3,9 +3,9 @@
# Usage: ./install_from_template.sh TEMPLATE_FILE OUTPUT_FILE OEM_FILE
#
-_TEMPLATE_="${1}"
-_OUTPUT_="${2}"
-_OEMFILE_="${3}"
+_OEMFILE_="${1}"
+_TEMPLATE_="${2}"
+_OUTPUT_="${3}"
[ -z "${_TEMPLATE_}" -o -z "${_OUTPUT_}" -o -z "${_OEMFILE_}" ] && return 1
@@ -46,13 +46,13 @@ tab() {
# Callback variables
-VID="$(_get_oem_field "VID")"
-PIDS="$(_get_oem_field "PIDS")"
+VID="$(_get_oem_field 'VID')"
+PIDS="$(_get_oem_field 'PIDS')"
# Other variables
-_TMP_FILE_="$(mktemp -t tmp_file.XXXX)"
+_TMP_FILE_="$(mktemp -t 'tmp_file.XXXX')"
# Script body