diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-14 02:22:19 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-14 02:22:56 -0500 |
commit | b1eb50599e4db7eb4501af75cbbfa22007081ea5 (patch) | |
tree | c94a34c882cc17adedd781e8c5f34349b2a62416 /user/cups-filters | |
parent | b9e85bbdcf38547ef2ca4e5c2a6e6293bbcd2752 (diff) | |
download | packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.gz packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.bz2 packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.tar.xz packages-b1eb50599e4db7eb4501af75cbbfa22007081ea5.zip |
The New Plan
all pkgs needed to bootstrap -> system
others -> user
Diffstat (limited to 'user/cups-filters')
-rw-r--r-- | user/cups-filters/APKBUILD | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/user/cups-filters/APKBUILD b/user/cups-filters/APKBUILD new file mode 100644 index 000000000..66c662d11 --- /dev/null +++ b/user/cups-filters/APKBUILD @@ -0,0 +1,67 @@ +# Maintainer: Max Rees <maxcrees@me.com> +pkgname=cups-filters +pkgver=1.20.3 +pkgrel=0 +pkgdesc="OpenPrinting CUPS filters and backends" +url="http://www.linuxfoundation.org/collaborate/workgroups/openprinting/pdf_as_standard_print_job_format" +arch="all" +license="GPL-2.0 and GPL-2.0-or-later and GPL-3.0 and MIT" +depends="poppler-utils bc ttf-freefont" +makedepends="cups-dev libjpeg-turbo-dev poppler-dev zlib-dev libpng-dev + tiff-dev lcms2-dev freetype-dev fontconfig-dev qpdf-dev dbus-dev linux-headers + coreutils gnutls-dev python3" +checkdepends="ttf-dejavu" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +source="http://www.openprinting.org/download/cups-filters/cups-filters-$pkgver.tar.xz" +builddir="$srcdir/cups-filters-$pkgver" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + --disable-static \ + --with-pdftops=pdftops \ + --with-shell=/bin/sh \ + --without-rcdir \ + --without-rclevels \ + --disable-avahi \ + --disable-ghostscript \ + --disable-mutool \ + --with-test-font-path='/usr/share/fonts/ttf-dejavu/DejaVuSans.ttf' + # workaround parallel build issue by building libcupsfilters.la first + make libcupsfilters.la && make libfontembed.la && make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make -j1 DESTDIR="$pkgdir" install + # the pdf.utf-8 symlink isn't quite good enough + cd "$pkgdir"/usr/share/cups/charsets && \ + ln -s pdf.utf-8.simple pdf.UTF-8 +} + +dev() { + default_dev + # cupsfilters.drv needs pcl.h + install -Dm644 "$builddir"/filter/pcl.h \ + "$pkgdir"/usr/share/cups/ppdc/pcl.h +} + +libs() { + pkgdesc="OpenPrinting CUPS filters and backends - cupsfilters and fontembed libraries" + install -d "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/lib*.so.* "$subpkgdir"/usr/lib/ +} + +sha512sums="402a53bf1ea12b14e6f8aa46f8f5e91b2caf9da3a8f14759568b5a45b9309f379fec542c843da5560cbcec2c4860babfee7e9c2f0c62f5fa6254025e9d867b31 cups-filters-1.20.3.tar.xz" |