From c6c6a6b9bfbe5cf413d9adef46b7350a9bdc0b07 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 4 Aug 2018 07:51:33 +0000 Subject: user/gutenprint: new package --- user/gutenprint/APKBUILD | 39 +++++++++++++++++++++++++++++++++ user/gutenprint/gutenprint.post-install | 3 +++ user/gutenprint/gutenprint.post-upgrade | 1 + 3 files changed, 43 insertions(+) create mode 100644 user/gutenprint/APKBUILD create mode 100644 user/gutenprint/gutenprint.post-install create mode 120000 user/gutenprint/gutenprint.post-upgrade (limited to 'user') diff --git a/user/gutenprint/APKBUILD b/user/gutenprint/APKBUILD new file mode 100644 index 000000000..ae768304b --- /dev/null +++ b/user/gutenprint/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=gutenprint +pkgver=5.2.14 +pkgrel=0 +pkgdesc="Open source printer drivers" +url="http://gimp-print.sourceforge.net/" +arch="all" +options="!check" # Times out even on 64-thread POWER9. +license="GPL-2.0-only" +depends="" +makedepends="cups-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" +install="$pkgname.post-install $pkgname.post-upgrade" +source="https://downloads.sourceforge.net/gimp-print/gutenprint-$pkgver.tar.bz2" + +build() { + cd "$builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + make +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="aeb06b4be45fcb67320b419b988ca59dbda51bb2c3ff4edd0f0757ac977565a6829f506ebea6872211c689a15925ad2119836424c3c9a97345a8cd506e9df9fd gutenprint-5.2.14.tar.bz2" diff --git a/user/gutenprint/gutenprint.post-install b/user/gutenprint/gutenprint.post-install new file mode 100644 index 000000000..73b2413a8 --- /dev/null +++ b/user/gutenprint/gutenprint.post-install @@ -0,0 +1,3 @@ +#!/bin/sh + +cups-genppdupdate diff --git a/user/gutenprint/gutenprint.post-upgrade b/user/gutenprint/gutenprint.post-upgrade new file mode 120000 index 000000000..ea76bff16 --- /dev/null +++ b/user/gutenprint/gutenprint.post-upgrade @@ -0,0 +1 @@ +gutenprint.post-install \ No newline at end of file -- cgit v1.2.3-70-g09d2