Date: Friday, September 18, 2020 @ 21:57:30 Author: andyrtr Revision: 396287
add packages required for recent printing packages changes Added: lprint/ lprint/repos/ lprint/trunk/ lprint/trunk/PKGBUILD pappl/ pappl/repos/ pappl/trunk/ pappl/trunk/PKGBUILD -----------------------+ lprint/trunk/PKGBUILD | 32 ++++++++++++++++++++++++ pappl/trunk/PKGBUILD | 63 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) Added: lprint/trunk/PKGBUILD =================================================================== --- lprint/trunk/PKGBUILD (rev 0) +++ lprint/trunk/PKGBUILD 2020-09-18 21:57:30 UTC (rev 396287) @@ -0,0 +1,32 @@ +# Maintainer: Andreas Radke <[email protected]> +# Contributor: WorMzy Tykashi <[email protected]> + +pkgname=lprint +pkgver=1.0 +pkgrel=1 +pkgdesc="Label Printer Application" +arch=('x86_64') +url="https://www.msweet.org/lprint/" +license=('Apache' 'custom') +depends=('libcups' 'libpng' 'libusb' 'pam') +source=("https://github.com/michaelrsweet/lprint/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.sig}) +validpgpkeys=('845464660B686AAB36540B6F999559A027815955') # M. Sweet +sha256sums=('52a34d4a17accdc90aa32a29faf8da3493c274d838fdb86f0034ceaac83b5a32' + 'SKIP') +build() { + cd ${pkgname}-${pkgver} + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname-$pkgver" + #make -k check +} + +package() { + cd ${pkgname}-${pkgver} + make DESTDIR="${pkgdir}" install + # add license + exception + install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" {LICENSE,NOTICE} +} Added: pappl/trunk/PKGBUILD =================================================================== --- pappl/trunk/PKGBUILD (rev 0) +++ pappl/trunk/PKGBUILD 2020-09-18 21:57:30 UTC (rev 396287) @@ -0,0 +1,63 @@ +# Maintainer: Andreas Radke <[email protected]> + +pkgname=pappl +#https://github.com/michaelrsweet/pappl/commits/master +_commit=8377f21cd02a7140a1feaf9cf9eb73002f52ac65 # master 2020-09-11 +pkgver=0.9 +pkgrel=0.1 +pkgdesc="a simple C-based framework/library for developing CUPS Printer Applications" +arch=('x86_64') +url="https://www.msweet.org/pappl/" +license=('Apache' 'custom') +depends=('libcups' 'libjpeg-turbo' 'pam') +makedepends=('git') +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +#options=('!makeflags') +install= +changelog= +#source=("$pkgname-$pkgver.tar.gz" +# "$pkgname-$pkgver.patch") +source=(git+"https://github.com/michaelrsweet/pappl.git#commit=$_commit") +noextract=() +md5sums=('SKIP') +validpgpkeys=() + +#prepare() { +# cd "$pkgname-$pkgver" +# patch -p1 -i "$srcdir/$pkgname-$pkgver.patch" +#} + +build() { + cd "$pkgname" #-$pkgver" + ./configure --prefix=/usr + make +} + +check() { + cd "$pkgname" #-$pkgver" + + # there's currently no real test suite, + # the tool is only useful outside the fakeroot envireonment - when packaging it crashes: + # testpappl: client.c:771: avahi_client_get_host_name_fqdn: Assertion `client' failed. + # /startdir/PKGBUILD: line 43: 1878 Aborted (core dumped) ./testsuite/testpappl + + # run it later outside fakeroot! + #./testsuite/testpappl +} + +package() { + cd "$pkgname" #-$pkgver" + make DESTDIR="$pkgdir/" install + + # install the testing tool + install -Dm755 testsuite/testpappl -t "$pkgdir"/usr/bin + # install docs + install -Dm644 doc/* -t "$pkgdir"/usr/share/doc/$pkgname + # add license + exception + install -m644 -Dt "${pkgdir}/usr/share/licenses/${pkgname}" {LICENSE,NOTICE} +}
