summaryrefslogtreecommitdiff
path: root/repo/cups/cups.xibuild
blob: 61002c0ac6d672ae89239101163bff9d5127fec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh

NAME="cups"
DESC="The CUPS Printing System"

MAKEDEPS="make "
DEPS="sbase dbus libusb musl openssl poppler "

PKG_VER=2.4.2
SOURCE="https://github.com/OpenPrinting/cups/archive/v$PKG_VER.tar.gz"
ADDITIONAL="default-config-no-gssapi.patch cups-no-export-ssllibs.patch "

prepare () {
    apply_patches
}

build () {
    ./configure \
        --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 \
		--disable-launchd \
		--with-optim="$CFLAGS"

    make
}

package () {
    make DESTDIR=$PKG_DEST install
}