Files
pmaports-rtwo/extra-repos/systemd/cups/APKBUILD
T
Oliver Smith b5362184ce systemd: revert some of the pkgrel bumps
Revert some of the pkgrel bumps from 7429bed2 ("*/*: bump pkgrels of
packages with systemd subpackages"), as they fail for various reasons in
BPO now that are unrelated to rebuilding with the latest abuild +
systemd patch. We can't fix all of them now (I've already spent some
significant time firefighting here today...), so let's unblock BPO and
all pmaports users who currently need to build all of the systemd
packages themselves until BPO finishes the repo, and will also run into
the same errors when trying to build those packages in particular.

* cups -> unkown:
  https://builds.sr.ht/~postmarketos/job/1540055
  https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3867

* gdm -> GCC 15:
  https://gitlab.alpinelinux.org/alpine/aports/-/commit/a09144387e314c213b69f9ef43265acc7c345e60
  (let's add this another time after the queue in BPO is cleared)

* networkmanager -> unkown:
  https://gitlab.postmarketos.org/postmarketOS/pmaports/-/issues/3866

* plasma-workspace -> unknown:
  https://gitlab.alpinelinux.org/alpine/aports/-/issues/17407

[ci:skip-build]
[ci:skip-vercheck]

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6837
2025-07-28 22:25:56 +02:00

161 lines
3.8 KiB
Bash

# Forked from alpine for ondemand and sd-journald
maintainer="Jane Rachinger <jane400+pmaports@postmarketos.org>"
pkgname=cups
_pkgver=2.4.12
pkgver=9999$_pkgver
pkgrel=0
pkgdesc="The CUPS Printing System"
url="https://github.com/OpenPrinting/cups/"
# armhf: pmb#2618
arch="all !armhf"
license="Apache-2.0"
depends_dev="libgcrypt-dev gnutls-dev zlib-dev"
makedepends="
$depends_dev
avahi-dev
dbus-dev
libjpeg-turbo-dev
libpaper-dev
libusb-dev
linux-headers
systemd-dev
"
depends="cups-client poppler-utils openssl dbus"
install="cups.pre-install"
pkggroups="lp lpadmin"
pkgusers="lp"
subpackages="
$pkgname-dbg
$pkgname-dev
$pkgname-doc
$pkgname-libs
ipptool
$pkgname-client
$pkgname-lang
$pkgname-systemd
"
source="$pkgname-$_pkgver.tar.gz::https://github.com/OpenPrinting/cups/archive/v$_pkgver.tar.gz
$pkgname.logrotate
cups-no-export-ssllibs.patch
cups-nostrip.patch
default-config-no-gssapi.patch
"
options="!check"
builddir="$srcdir/cups-$_pkgver"
build() {
# pmOS: remove lto
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-menudir=/usr/share/applications \
--with-icondir=/usr/share/icons \
--with-logdir=/var/log/cups \
--with-docdir=/usr/share/cups \
--with-rundir=/run/cups \
--with-cupsd-file-perm=0755 \
--with-cups-user=lp \
--with-cups-group=lp \
--with-system-groups=lpadmin \
--with-domainsocket=/run/cups/cups.sock \
--enable-libusb \
--without-rcdir \
--without-php \
--disable-pam \
--enable-raw-printing \
--enable-dbus \
--with-dbusdir=/usr/share/dbus-1 \
--enable-libpaper \
--enable-ssl=yes \
--enable-gnutls \
--with-optim="$CFLAGS" \
\
--enable-systemd \
--with-ondemand=systemd
make
}
package() {
make DESTDIR="$pkgdir" install
cd "$pkgdir"
# These no longer works since CUPS >= 1.6 (http://www.cups.org/str.php?L4120).
rm -rf usr/share/cups/banners/* \
usr/share/cups/data/testprint
install -D -m 644 "$srcdir"/cups.logrotate etc/logrotate.d/cups
if [ -e usr/share/applications/cups.desktop ] ; then
sed -i 's|^Exec=htmlview http://localhost:631/|Exec=xdg-open http://localhost:631/|g' \
usr/share/applications/cups.desktop
fi
find usr/share/cups/model -name "*.ppd" -exec gzip -n9f {} +
}
dev() {
default_dev
# needed for main cups operation
mv "$subpkgdir"/usr/share/cups/ppdc/* \
"$pkgdir"/usr/share/cups/ppdc
rmdir "$subpkgdir"/usr/share/cups/ppdc
}
libs() {
pkgdesc="CUPS libraries"
depends=""
replaces="libcups"
amove 'usr/lib/*.so*'
install -d "$pkgdir"/etc/cups
}
ipptool() {
pkgdesc="Perform internet printing protocol requests"
depends=""
amove usr/bin/ipptool \
usr/share/cups/ipptool
}
client() {
pkgdesc="CUPS command-line client programs"
depends=""
amove usr/bin \
usr/sbin/cupsaccept \
usr/sbin/cupsctl \
usr/sbin/cupsdisable \
usr/sbin/cupsenable \
usr/sbin/lpadmin \
usr/sbin/lpc \
usr/sbin/lpinfo \
usr/sbin/lpmove
}
doc() {
default_doc
amove usr/share/cups/help
}
systemd() {
systemd_system_units_restart="cups.service"
default_systemd
}
sha512sums="
55ccd54e6d1bf09bb0881a6fc73b07f73bf71f41454c3ec23e48187529ed4c41d3b9720ff76568bb5cfdfe7b567e90870b6243c7fb2f0657c4ce8145aba95b9d cups-2.4.12.tar.gz
bc2e9985b248bdf552306dcaad6ac86ada0053da97a742e57e7d65f0c2373a88edd622b326a39bb536c7aaabc449255d5597001297c9430d237379547c95caf3 cups.logrotate
148eb01f0861e1cd0861a174a5c5262c49b079b27b972b4e90656b9b9357ec710e861604c30e897818f550e9c1cdcefcd8c8bc955ba4a333902a74cdd8dfb5a6 cups-no-export-ssllibs.patch
7b2f1212b009d4e005eaf4fc288413bde57aff4ca664173202163e8f18be1ddc72c26ec84576a4850d63b08c6ce5948d57c77e81c4f4c85032d7ef7530b1eb81 cups-nostrip.patch
c492f5e20a1bb73cf6bed86d0343659e839df4003aa1409bf608dd3ff05694d1e06ba26fd3786385d2c96dd668485dcef6cfee7f908416a2b125a8e30e82e670 default-config-no-gssapi.patch
"