summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9b5f0cb363f7769cabd20e469c20b06f6889f3ab (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
# Maintainer: NebulaBC <ufrii.print@nebulabc.net>
pkgname='ufrii-print'
pkgver=1.1
pkgrel=1
pkgdesc="Install the official Canon UFRII/UFRII LT driver made for Debian on ArchLinux"
url="https://www.usa.canon.com/support/p/color-imageclass-mf644cdw"
arch=('x86_64')
depends=('cups'
	'ghostscript'
	'gtk3'
	'libjpeg6-turbo'
	'libgcrypt'
	'jbigkit'
	'zlib')

install=install.sh

source=("https://gdlp01.c-wss.com/gds/6/0100009236/15/linux-UFRII-drv-v570-us-11.tar.gz")

sha256sums=("e5afaac96abfeb13b36311ee880dcf5942155e1877f9aa36cecca29647d9a232")

build() {
    tar -xf linux-UFRII-drv-v570-us-11.tar.gz
    cd linux-UFRII-drv-v570-us/x64/Debian
    mv cnrdrvcups-ufr2-us_5.70-1.11_amd64.deb $srcdir
    cd $srcdir
    rm -rf linux-UFRII-drv-v570-us*
    ar x cnrdrvcups-ufr2-us_5.70-1.11_amd64.deb
    rm control.tar.xz debian-binary cnrdrvcups-ufr2-us_5.70-1.11_amd64.deb
    tar -xvf data.tar.xz
    rm data.tar.xz
}

package() {
    cd $srcdir
    # Because this package has no sort of make system, there's no `install` command I know of that lets me copy the prepared srcdir to the pkgdir. MarsSeed flagged this package out of date because of my `mv` usage. Hopefully this should be better.
    cp -dr --no-preserve=ownership * $pkgdir
    echo "To open the setup GUI, you can run \`cnsetuputil2\`"
}