blob: 1af6634a6b8d5b0c6268d89cf2353eebb184d1eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# maintainer: ArticExploit <artic@articexploit.xyz>
# contributor: Arch_user (in the artix forum, https://forum.artixlinux.org/index.php/topic,4601.msg29502.html#msg29502)
# compatible printer models:
# P2200 P2200W
# P2500 P2509 P2509W P2500W P2502 P2502W P2506
# P3010D P3010DW P3018DW P3012DW
# P3300DN P3300DW P3302DW P3302DN P3308DN P3308DW
# M6500 M6500NW M6500N M6500W M6502 M6502NW M6509 M6509NW
# M6550 M6550NW M6550N M6550W M6552NW M6558NW M6559 M6559N M6559NW
# M6600 M6600NW M6600W M6602NW M6600N M6609N M6609NW
# M6700D M6700DW M6702DW
# M6800FDW M6802FDW M6808FDW
# M7100DN M7100DW M7102DN M7102DW M7108DW
# M7200FD M7200FDN M7200FDW M7202FDN M7202FDW M7208FDW
# M7300FDN M7300FDW
# BP5100DN BP5100DW
# BM5100ADN BM5100ADW BM5100FDN BM5100FDW
# L2710FDW
pkgname=pantum-driver
pkgver="1.1.123"
pkgrel="1"
pkgdesc="Linux driver for Pantum printers V$pkgver (check PKGBUILD for compatible printer models)"
arch=('x86_64' 'x86' 'i686' 'i386' 'arm' "aarch64")
url="https://global.pantum.com/support/download/driver/"
license=('proprietary')
sha256sums=("71d8b382a4a974600874f8891afec086747ffdcd0815fd6bf8d0c80d44227eff")
source=("https://github.com/ArticExploit/pantum-driver/releases/download/1.1.123/Pantum.Ubuntu.Driver.V1_1_123.zip")
extract_deb()
{
ar p $1 data.tar.xz | tar xJ
}
build()
{
cd $srcdir/Pantum\ Ubuntu\ Driver\ V$pkgver/Resources
mkdir -p pkg
cd ./pkg
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/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*
}
|