summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e3cedb7d8be2d9dc2d5609736f3c4f32e075d4b7 (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
# Maintainer: Przemysław Buczkowski <przemub at przemub dot pl>

pkgname='ricoh-sp100-git'
pkgver='v0.3.r22.gef4c12d'
pkgrel=1

pkgdesc='CUPS driver for Ricoh Aficio SP 100 and SP 200 family printers'
arch=('any')
url='https://github.com/madlynx/ricoh-sp100/'
license=('unknown')

depends=('cups' 'jbigkit' 'imagemagick' 'ghostscript')
optdepends=('inotify-tools: asynchronous printing support')
makedepends=('git')

source=('git://github.com/madlynx/ricoh-sp100')
md5sums=('SKIP')

pkgver() {
	cd "ricoh-sp100"
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
	cd "ricoh-sp100"

	mkdir -p $pkgdir/usr/share/cups/model
	mkdir -p $pkgdir/usr/lib/cups/filter

	cp *.ppd $pkgdir/usr/share/cups/model
	cp pstoricohddst-gdi $pkgdir/usr/lib/cups/filter
}