diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-12 10:13:35 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-12 10:13:35 +0100 |
commit | eda7dd58fe8c35c73ab4e53625f8c57f24e0e0e4 (patch) | |
tree | 87f3a8bca12c894d0f6b3eedc9954380ce37e5e5 /PKGBUILD | |
parent | 5af935272c609586d04d36d6195189a0006eaac7 (diff) |
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -2,22 +2,25 @@ pkgname=ppd-psn-dp-1820 pkgver=1.0 -pkgrel=2 +pkgrel=3 pkgdesc="PPD drivers for Panasonic WORKiO DP-1520P, 1820E and 1820P" arch=('any') url="https://panasonic.net/cns/pcc/support/mfp/dp-1820/ps/download.html" license=('unknown') depends=('cups') +makedepends=('dos2unix') source=('https://www.psn-web.net/cs/support/mfp/dp-1820/ps/mxae061215.zip') sha256sums=('7c3ccc9c8e8851aadb46b53108e92813f9b2751d61ce9e5727e2c26f49133b55') install=psn-dp-1820.install package() { - cd "$srcdir/mxae061215" - target_dir="$pkgdir/usr/share/ppd/Panasonic" mkdir -p "$target_dir" - install -D -m 644 \ - Panasonic_DP-1520P.ppd Panasonic_DP-1820E.ppd Panasonic_DP-1820P.ppd \ - "$target_dir" + + cd "$srcdir/mxae061215" + for file in * ; do + dos2unix -q "$file" + sed -i 's/\<Foolscap\>/8x13/g' "$file" + install -D -m 644 "$file" "$target_dir" + done } |