mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:07:14 +08:00
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=cups-pdf
|
|
pkgver=2.5.1
|
|
pkgrel=1
|
|
pkgdesc="PDF printer for cups"
|
|
arch=(i686 x86_64)
|
|
depends=('cups' 'ghostscript')
|
|
install=cups-pdf.install
|
|
url="http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf"
|
|
license=('GPL2')
|
|
source=(http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/cups-pdf_$pkgver.tar.gz)
|
|
backup=(etc/cups/cups-pdf.conf)
|
|
md5sums=('4b4cf1a249d02a38045db74b5f259aac')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver/src
|
|
[ -z "$CC" ] && CC=gcc
|
|
$CC $CFLAGS -Wall -o cups-pdf cups-pdf.c
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver/src
|
|
install -D -m700 cups-pdf $pkgdir/usr/lib/cups/backend/cups-pdf
|
|
|
|
# Install Postscript Color printer
|
|
cd ../extra
|
|
install -D -m644 CUPS-PDF.ppd $pkgdir/usr/share/cups/model/CUPS-PDF.ppd
|
|
|
|
# Install config file
|
|
install -D -m644 cups-pdf.conf $pkgdir/etc/cups/cups-pdf.conf
|
|
}
|