comparison print/cups/cups.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 297b5eef115e
children 57dc83a39b13
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
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 build() 65 rm -rf $PKGNAME-$PKGVERSION
66 { 66 tar xvf $PKGNAME-$PKGVERSION-source.tar.gz
67 rm -rf $PKGNAME-$PKGVERSION 67 cd $PKGNAME-$PKGVERSION
68 tar xvf $PKGNAME-$PKGVERSION-source.tar.gz
69 cd $PKGNAME-$PKGVERSION
70 68
71 # --without-rcdir: do not install custom init scripts. 69 # --without-rcdir: do not install custom init scripts.
72 CC="$CC" \ 70 CC="$CC" \
73 CFLAGS="$CFLAGS" \ 71 CFLAGS="$CFLAGS" \
74 CXX="$CXX" \ 72 CXX="$CXX" \
75 CXXFLAGS="$CXXFLAGS" \ 73 CXXFLAGS="$CXXFLAGS" \
76 LDFLAGS="$LDFLAGS" \ 74 LDFLAGS="$LDFLAGS" \
77 LIBS="$LIBS" \ 75 LIBS="$LIBS" \
78 ./configure \ 76 ./configure \
79 --build=$CBUILD \ 77 --build=$CBUILD \
80 --host=$CHOST \ 78 --host=$CHOST \
81 --prefix= \ 79 --prefix= \
82 --sbindir=/bin \ 80 --sbindir=/bin \
83 --disable-systemd \ 81 --disable-systemd \
84 --enable-shared \ 82 --enable-shared \
85 --without-rcdir \ 83 --without-rcdir \
86 --with-cups-user=lp \ 84 --with-cups-user=lp \
87 --with-cups-group=lp \ 85 --with-cups-group=lp \
88 --with-system-groups=wheel \ 86 --with-system-groups=wheel \
89 --with-icondir=/share/icons \ 87 --with-icondir=/share/icons \
90 --with-menudir=/share/applications \ 88 --with-menudir=/share/applications \
91 $with_acl \ 89 $with_acl \
92 $with_dbus \ 90 $with_dbus \
93 $with_pam 91 $with_pam
94 make 92 make
95 make install BUILDROOT=$DESTDIR 93 make install BUILDROOT=$DESTDIR
96 install -Dm0644 ../cupsd $DESTDIR/etc/rc.d/cupsd 94 install -Dm0644 ../cupsd $DESTDIR/etc/rc.d/cupsd
97 95
98 if [ "$PAM" = "yes" ]; then 96 if [ "$PAM" = "yes" ]; then
99 install -Dm0644 ../cups $DESTDIR/etc/pam.d/cups 97 install -Dm0644 ../cups $DESTDIR/etc/pam.d/cups
100 fi 98 fi
101 99
102 cd .. 100 cd ..
103 rm -rf $PKGNAME-$PKGVERSION 101 rm -rf $PKGNAME-$PKGVERSION
104 }