Skip to content

Commit 6407b6a

Browse files
committed
fix(canon-pixma-mg3000-complete): ppd file is not present
1 parent 4c82a61 commit 6407b6a

3 files changed

Lines changed: 21 additions & 28 deletions

File tree

packages/canon-pixma-mg3000-complete-deb/.SRCINFO

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ pkgbase = canon-pixma-mg3000-complete-deb
66
arch = amd64
77
arch = i386
88
depends = libc6>=2.7
9-
depends = libgcc1
9+
depends = libgcc-s1 | libgcc1
1010
depends = libcups2
1111
depends = libstdc++6
1212
depends = binutils
1313
depends = cups
14-
depends = libxml2>=2.7.4
15-
depends = libcupsimage2>=1.4.0
16-
depends = libusb-0.1-4
14+
depends = libxml2>=2.7.4 | libxml2-16
15+
depends = libcupsimage2
16+
depends = libusb-1.0-0
1717
depends = libpopt0
18-
depends = libtiff6
18+
depends = libtiff6 | libtiff5
1919
optdepends = scangearmp2-deb: Scanner driver for Canon
2020
replaces = cnijfilter2
2121
maintainer = aKqir24 <aKqir24@github.com>

packages/canon-pixma-mg3000-complete-deb/canon-pixma-mg3000-complete-deb.pacscript

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,30 @@ url='https://www.canon-europe.com/support/consumer_products/products/fax__multif
77

88
depends=(
99
"libc6>=2.7"
10-
"libgcc1"
11-
"libcups2"
10+
"libgcc-s1 | libgcc1"
11+
"libcups2>=1.2.1 | libcups2t64"
1212
"libstdc++6"
1313
"binutils"
1414
"cups"
15-
"libxml2>=2.7.4"
16-
"libcupsimage2>=1.4.0"
17-
"libusb-0.1-4"
15+
"libxml2>=2.7.4 | libxml2-16"
16+
"libcupsimage2t64 | libcupsimage2"
17+
"libusb-1.0-0>=1.0.6"
1818
"libpopt0"
19-
"libtiff6"
19+
"libtiff6 | libtiff5"
2020
)
2121
optdepends=("scangearmp2-deb: Scanner driver for Canon")
2222
replaces=("${gives}")
2323
maintainer=("aKqir24 <aKqir24@github.com>")
2424
source_amd64=("https://files.catbox.moe/mmxzt2.deb")
2525
source_i386=("https://files.catbox.moe/8tiosl.deb")
2626

27-
package() {
27+
post_install() {
28+
# Since pacstall handles packaging in deb files I need to get the PPD this way
29+
cd "${pkgdir}"
2830
_ppdFile="canonmg3000.ppd"
31+
curl -L -o "usr/share/ppd/${_ppdFile}" https://gist.githubusercontent.com/aKqir24/8215d85c5788fc969bfa3b7d88f52699/raw/b1325c2889b1bb2905e48d1b3c18738b8fc49a1d/"${_ppdFile}"
2932

3033
install -Dm644 /usr/share/ppd/"${_ppdFile}" \
3134
"${pkgdir}/usr/share/cups/model/${_ppdFile}"
32-
33-
rm -rf usr/share/ppd
34-
cp -a usr "${pkgdir}/"
35-
36-
find usr/share/doc -name 'LICENSE*' -exec install -Dm644 {} \
37-
"${pkgdir}/usr/share/licenses/${pkgname}/$(basename {})" \;
38-
}
39-
40-
post_install() {
41-
fancy_message info "To make this driver work, make sure the cups service is running.\n
42-
If not then, run sudo systemctl enable cups.service"
35+
fancy_message info "To make this driver work, make sure the cups service is running. If not then, run sudo systemctl enable cups.service"
4336
}

srclist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,16 +1408,16 @@ pkgbase = canon-pixma-mg3000-complete-deb
14081408
arch = amd64
14091409
arch = i386
14101410
depends = libc6>=2.7
1411-
depends = libgcc1
1411+
depends = libgcc-s1 | libgcc1
14121412
depends = libcups2
14131413
depends = libstdc++6
14141414
depends = binutils
14151415
depends = cups
1416-
depends = libxml2>=2.7.4
1417-
depends = libcupsimage2>=1.4.0
1418-
depends = libusb-0.1-4
1416+
depends = libxml2>=2.7.4 | libxml2-16
1417+
depends = libcupsimage2
1418+
depends = libusb-1.0-0
14191419
depends = libpopt0
1420-
depends = libtiff6
1420+
depends = libtiff6 | libtiff5
14211421
optdepends = scangearmp2-deb: Scanner driver for Canon
14221422
replaces = cnijfilter2
14231423
maintainer = aKqir24 <aKqir24@github.com>

0 commit comments

Comments
 (0)