58 lines
1.6 KiB
Bash
58 lines
1.6 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=cups-filters
|
|
pkgver=2.0.0
|
|
pkgrel=01
|
|
pkgdesc="OpenPrinting CUPS Filters w/o systemd"
|
|
url="https://wiki.linuxfoundation.org/openprinting/cups-filters"
|
|
backup=(etc/cups/cups-browsed.conf)
|
|
depends=('libcups' 'libppd'
|
|
'libcupsfilters' 'glibc')
|
|
makedepends=('ghostscript' 'mupdf-tools')
|
|
source=(https://github.com/OpenPrinting/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.xz)
|
|
|
|
#prepare() {
|
|
# cd "$pkgname"-$pkgver
|
|
# patch -Np1 < ../cups-filters-CVE-2023-24805.patch
|
|
#}
|
|
|
|
build() {
|
|
cd "$pkgname"-$pkgver
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--sbindir=/usr/bin \
|
|
--localstatedir=/var \
|
|
--with-rcdir=no \
|
|
--disable-avahi
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$pkgname"-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname"-$pkgver
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
# license
|
|
mkdir -p "${pkgdir}"/usr/share/licenses/${pkgname}
|
|
install -m644 "${srcdir}"/${pkgname}-${pkgver}/{COPYING,NOTICE} "${pkgdir}"/usr/share/licenses/${pkgname}/
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('custom')
|
|
|
|
sha256sums=(b5152e3dd148ed73835827ac2f219df7cf5808dbf9dbaec2aa0127b44de800d8) # cups-filters-2.0.0.tar.xz
|
|
|
|
## c64bb777ffc63e2005006a3814f005103fd2cd8b4ed3f6d0a288780be1027ad8 cups-filters-2.0.0-01-x86_64.pkg.tar.lz
|