blob: 748a5b749cc40bb39e70c967941205bf394df00e (
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
|
# Maintainer: Alexander Sulfrian <asulfrian at zedat dot fu-berlin dot de>
pkgname=printer-driver-ptouch
pkgver=1.5.1
pkgrel=1
pkgdesc='P-Touch PT-series and QL-series printer driver for Linux (under CUPS)'
arch=('i686' 'x86_64')
url='https://github.com/philpem/printer-driver-ptouch'
license=('GPL')
depends=('ghostscript')
makedepends=('autoconf' 'libcups' 'foomatic-db-engine')
source=("$pkgname-$pkgver.tar.gz::https://github.com/philpem/printer-driver-ptouch/archive/v$pkgver.tar.gz")
sha256sums=('92de714d5b0103a7216812b4a497edeb879405fa57acace65e2c7b226e9e71de')
build() {
cd "$srcdir/$pkgname-$pkgver"
autoreconf --force
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
# Compile and remove foomatic database
mkdir -p "$pkgdir/usr/share/ppd/"
echo "dummy dummy" > "$pkgdir/usr/share/foomatic/db/oldprinterids"
FOOMATICDB="$pkgdir/usr/share/foomatic" foomatic-compiledb -t ppd -d "$pkgdir/usr/share/ppd/Brother/"
rm -r "$pkgdir/usr/share/foomatic/"
}
|