splix: moved to desktop

This commit is contained in:
Francesco Marinucci 2017-06-06 21:57:50 +01:00
parent 6b219e7f45
commit 01f06ee25a
2 changed files with 54 additions and 0 deletions

35
splix/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
#
# Platform package 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>
pkgname=splix
pkgver=2.0.0
pkgrel=2
pkgdesc="CUPS drivers for SPL (Samsung Printer Language) printers"
arch=('i686' 'x86_64')
url="http://splix.ap2c.org/"
license=('GPL')
depends=('libcups' 'gcc-libs' 'ghostscript>=9.02')
makedepends=('libcups' 'jbigkit')
install=splix.install
source=(http://downloads.sourceforge.net/splix/$pkgname-$pkgver.tar.bz2)
md5sums=('f3aa735c22a926818b3d8b26c9964186')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's#const PPDFile::Value::Value #const PPDFile::Value #' src/ppdfile.cpp
make PSTORASTER=gstoraster
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -d "$pkgdir/usr/lib/cups/filter"
install -d "$pkgdir/usr/share/cups/model/samsung"
make DESTDIR="$pkgdir" install
}

19
splix/splix.install Normal file
View File

@ -0,0 +1,19 @@
post_install() {
cat <<EOF
Installation of the color profile for color printers:
-----------------------------------------------------
Color printers needs color profile files to get better results. These
files are provided by your printer manufacturer and you have to install them
manually. To do that, download the linux official drivers and locate the "cms"
directory. Install this directory to "/usr/share/cups/model/\$MANUFACTURER/cms".
Samsung color profile files are available at:
(Then use MANUFACTURER=samsung)
http://splix.ap2c.org/samsung_cms.tar.bz2
EOF
}
post_upgrade() {
post_install
}