summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Severance2018-11-26 22:58:13 -0500
committerChris Severance2018-11-26 22:58:13 -0500
commit50da46ba6917372fb70a76bcc53d9955373b26a3 (patch)
tree6c8b98e642c91351a50f4662ed2e55d2452adb44
downloadaur-50da46ba6917372fb70a76bcc53d9955373b26a3.tar.gz
Initial Import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD82
2 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3789e6f30d7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+# Generated by mksrcinfo v8
+# Tue Nov 27 03:58:03 UTC 2018
+pkgbase = bixolon-srp-275
+ pkgdesc = LPR and CUPS driver for Bixolon Samsung SRP-275 POS thermal receipt printer
+ pkgver = 1.0.1
+ pkgrel = 1
+ url = http://www.bixolon.com/html/en/download/download_list.xhtml
+ arch = i686
+ arch = x86_64
+ license = custom
+ depends = cups
+ source = http://www.bixolon.com/upload/download/srp-275_cups_driver_v1.0.1_20121119135353.zip
+ md5sums = 906d7c9b17ef3f20c0a108775bdada56
+ sha256sums = 77694ec27704d53470cd907fd57a98cf2524dccc6b3971422b0c298c23865983
+ depends_x86_64 = lib32-glibc
+ depends_x86_64 = lib32-libcups
+
+pkgname = bixolon-srp-275
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..82872b9fa97
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,82 @@
+# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com
+
+set -u
+_pkgnick='SRP-275'
+pkgname="bixolon-${_pkgnick,,}"
+pkgver='1.0.1'; _dl='20121119135353'
+pkgrel='1'
+pkgdesc="LPR and CUPS driver for Bixolon Samsung ${_pkgnick} POS thermal receipt printer"
+arch=('i686' 'x86_64')
+url='http://www.bixolon.com/html/en/download/download_list.xhtml'
+license=('custom')
+depends=('cups')
+depends_x86_64=('lib32-glibc' 'lib32-libcups')
+_bxl='http://www.bixolon.com/upload/download'
+if ! :; then
+ _pdfs=(
+ 'manual_linux%20cups%20driver%20install_en_v1.0.0.pdf'
+ 'manual_cups%20ethernet%20setting_v1.0.0.pdf'
+ )
+ for _pdf in "${_pdfs[@]}"; do
+ source+=("${_pdf//%20/_}::${_bxl}/${_pdf}")
+ done
+ unset _pdf _pdfs
+fi
+_srcdir="${_pkgnick}_CUPS_Driver_V${pkgver//_/.}"
+source+=("${_bxl}/${_srcdir,,}_${_dl}.zip")
+_srcdir+='/Std_Linux'
+_setup="setup_v${pkgver//_/.}.sh"
+md5sums=('906d7c9b17ef3f20c0a108775bdada56')
+sha256sums=('77694ec27704d53470cd907fd57a98cf2524dccc6b3971422b0c298c23865983')
+
+_uagent='Mozilla'
+_uagent='Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0'
+DLAGENTS=("${DLAGENTS[@]//curl -/curl -A '${_uagent}' -}")
+
+prepare() {
+ set -u
+ cd "${_srcdir}"
+
+ chmod 644 *.ppd
+
+ # Make installer package compatible
+ #cp "${_setup}"{,.Arch}
+ sed -e '# Run as user' \
+ -e 's:\$UID:$ROOT_UID:g' \
+ -e 's:\bsudo ::g' \
+ -e '# Remove Gentoo check' \
+ -e 's:^\(LINUX_CHECK\)=.*$:\1=0:g' \
+ -e '# Remove cups version check' \
+ -e 's:^\(CUPSVER\)=.*$:\1=Arch:g' \
+ -e '# Package folders' \
+ -e 's: /etc/: "${_pkgdir}"/etc/:g' \
+ -e 's: /usr/: "${_pkgdir}"/usr/:g' \
+ -e '# Add pkgdir to some symlinks' \
+ -e 's:--target-directory=:&"${_pkgdir}":g' \
+ -e '# Remove pkgdir from symlinks' \
+ -e '/ln / s: "${_pkgdir}"/usr/: /usr/:' \
+ -e '# chmod target instead of symlink' \
+ -e 's:chmod .*\${LIBPATH}.*rasterto:# &:g' \
+ -e 's:chmod .*/lib/.*rasterto:# &:g' \
+ -e '# Eliminate service lines' \
+ -e 's:^\s*service\s:# &:g' \
+ -e '# Eliminate restarts' \
+ -e '/Restarting CUPS/ s:^:exit 0 # Arch Compatible\n&:g' \
+ -i "${_setup}"
+ grep -qe 'Arch Compatible$' "${_setup}" || echo "${}"
+ test ! -s "${_setup}.Arch" || echo "${}"
+ set +u
+}
+
+package() {
+ set -u
+ cd "${_srcdir}"
+ install -d "${pkgdir}/usr/bin" "${pkgdir}/usr/lib/cups/filter/" "${pkgdir}/usr/share/cups/model/"
+
+ _pkgdir="${pkgdir}" \
+ sh -e -u "${_setup}"
+
+ chmod 644 "${pkgdir}/usr/share/cups/model"/*.ppd
+ set +u
+}
+set +u