summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD15
2 files changed, 11 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 10e4672..5445cc3 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,12 @@
pkgbase = ppd-psn-dp-1820
pkgdesc = PPD drivers for Panasonic WORKiO DP-1520P, 1820E and 1820P
pkgver = 1.0
- pkgrel = 1
+ pkgrel = 3
url = https://panasonic.net/cns/pcc/support/mfp/dp-1820/ps/download.html
install = psn-dp-1820.install
arch = any
license = unknown
+ makedepends = dos2unix
depends = cups
source = https://www.psn-web.net/cs/support/mfp/dp-1820/ps/mxae061215.zip
sha256sums = 7c3ccc9c8e8851aadb46b53108e92813f9b2751d61ce9e5727e2c26f49133b55
diff --git a/PKGBUILD b/PKGBUILD
index 6abae26..0f060dc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
}