Re: Printer drivers (2)
Reply #6 –
Try this , I have test package is built fine , but you must test does printer works or not
pkgname=pantum_driver
pkgver="1.1.82"
pkgrel="1"
pkgdesc="Pantum M6200-M6500-M6550-M6600-MS6000 Series LINUX Driver V$pkgver"
arch=('x86_64' 'x86' 'i686' 'i386' 'arm' "aarch64")
license=('proprietary')
depends=('sane' 'cups')
source=(
"https://drivers.pantum.com/userfiles/files/download/PantumUbuntuDriverV1.1.82-1_1644315758635.zip"
)
sha256sums=(
"9cfb10f35eeae6dce58a633f17d0489538d7d2391b9e40905178a12a65988be2"
)
#noextract=("aeskulap_0.2.2b1-11_amd64.deb" "libdcmtk2_3.6.0-12_amd64.deb" "libwrap0_7.6.q-25_amd64.deb")
extract_deb()
{
ar p $1 data.tar.xz | tar xJ
}
build()
{
# extract them all under the base /usr dir inside of the source folder
#extract_deb "aeskulap_0.2.2b1-11_amd64.deb"
#extract_deb "libdcmtk2_3.6.0-12_amd64.deb"
#extract_deb "libwrap0_7.6.q-25_amd64.deb"
cd $srcdir/Pantum\ Ubuntu\ Driver\ V$pkgver-$pkgrel/Resources
mkdir -p pkg
cd ./pkg
#extract_deb "../Pantum-M6500-Series-3.0.$arch.deb"
extract_deb "../pantum_$pkgver-"$pkgrel"_amd64.deb"
}
package()
{
# go into the package folder and copy the /usr into the root
cd ${pkgdir}
cp -r "${srcdir}/Pantum Ubuntu Driver V$pkgver-$pkgrel/Resources/pkg/"* .
# move this into that
# rm -r ./usr/lib64
cd usr/lib
#mv -u $arch-linux-gnu/* .
cp -a $arch-linux-gnu/* .
rm -r *-linux-gnu*
}