comparison print/cups/cups.sh @ 1222:325631424c65

misc: bring back build function
author David Demelier <markand@malikania.fr>
date Wed, 27 Oct 2021 11:32:16 +0200
parents a47aaf9743a0
children 9867e578b1a9
comparison
equal deleted inserted replaced
1221:a47aaf9743a0 1222:325631424c65
60 with_pam="--enable-pam" 60 with_pam="--enable-pam"
61 else 61 else
62 with_pam="--disable-pam" 62 with_pam="--disable-pam"
63 fi 63 fi
64 64
65 rm -rf $PKGNAME-$PKGVERSION 65 build()
66 tar xvf $PKGNAME-$PKGVERSION-source.tar.gz 66 {
67 cd $PKGNAME-$PKGVERSION 67 rm -rf $PKGNAME-$PKGVERSION
68 tar xvf $PKGNAME-$PKGVERSION-source.tar.gz
69 cd $PKGNAME-$PKGVERSION
68 70
69 # --without-rcdir: do not install custom init scripts. 71 # --without-rcdir: do not install custom init scripts.
70 CC="$CC" \ 72 CC="$CC" \
71 CFLAGS="$CFLAGS" \ 73 CFLAGS="$CFLAGS" \
72 CXX="$CXX" \ 74 CXX="$CXX" \
73 CXXFLAGS="$CXXFLAGS" \ 75 CXXFLAGS="$CXXFLAGS" \
74 LDFLAGS="$LDFLAGS" \ 76 LDFLAGS="$LDFLAGS" \
75 LIBS="$LIBS" \ 77 LIBS="$LIBS" \
76 ./configure \ 78 ./configure \
77 --build=$CBUILD \ 79 --build=$CBUILD \
78 --host=$CHOST \ 80 --host=$CHOST \
79 --prefix=/usr \ 81 --prefix= \
80 --sbindir=/bin \ 82 --sbindir=/bin \
81 --disable-systemd \ 83 --disable-systemd \
82 --enable-shared \ 84 --enable-shared \
83 --without-rcdir \ 85 --without-rcdir \
84 --with-cups-user=lp \ 86 --with-cups-user=lp \
85 --with-cups-group=lp \ 87 --with-cups-group=lp \
86 --with-system-groups=wheel \ 88 --with-system-groups=wheel \
87 --with-icondir=/share/icons \ 89 --with-icondir=/share/icons \
88 --with-menudir=/share/applications \ 90 --with-menudir=/share/applications \
89 $with_acl \ 91 $with_acl \
90 $with_dbus \ 92 $with_dbus \
91 $with_pam 93 $with_pam
92 make 94 make
93 make install BUILDROOT=$DESTDIR 95 make install BUILDROOT=$DESTDIR
94 install -Dm0644 ../cupsd $DESTDIR/etc/rc.d/cupsd 96 install -Dm0644 ../cupsd $DESTDIR/etc/rc.d/cupsd
95 97
96 if [ "$PAM" = "yes" ]; then 98 if [ "$PAM" = "yes" ]; then
97 install -Dm0644 ../cups $DESTDIR/etc/pam.d/cups 99 install -Dm0644 ../cups $DESTDIR/etc/pam.d/cups
98 fi 100 fi
99 101
100 cd .. 102 cd ..
101 rm -rf $PKGNAME-$PKGVERSION 103 rm -rf $PKGNAME-$PKGVERSION
104 }