Making a PKGBUILD for my printer drivers; how to combine files from two different debs?
I've never written my own PKGBUILD before, and I'm following this guide: https://wiki.archlinux.org/index.php/Packaging_Brother_printer_drivers
I have two working packages for the LPR filter and another for the CUPS PPD, just like the guide (I'm using .deb source files to extract from). In each package, I have a package() method that looks something like this:
package() {
tar -xf data.tar.gz -C "${pkgdir}"
mkdir -p "${pkgdir}/usr/lib/cups/filter/"
ln -s "/opt/brother/Printers/mfcj835dw/lpd/filtermfcj835dw" "${pkgdir}/usr/lib/cups/filter/brother_lpdwrapper_mfcj835dw"
}
There must be some magic before package() runs that takes the content from the .deb file so that data.tar.gz exists. I'd like to combine my two PKGBUILDs into a single one, since both the LPR filter and the PPD are needed. However, since I have two .deb files, the second data.tar.gz is going to clobber the first tone.
How would I run this `tar -xf` command twice, one for each .deb so that I can get the contents of both .debs?
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- cuwisc
2 comments
You can list both source files as
noextract, and then extract them manually however you want.Ah. Thanks!