60 lines
1.3 KiB
Text
Executable file
60 lines
1.3 KiB
Text
Executable file
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=cups
|
|
version=2.1.4
|
|
build=1sml
|
|
homepage="http://www.cups.org/"
|
|
download="https://github.com/apple/cups/releases/download/release-$version/cups-$version-source.tar.gz"
|
|
desc="Common UNIX Printing System"
|
|
requires="perl openssl gnutls dbus"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version-source.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
}
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix= \
|
|
--sbindir=/bin \
|
|
--libdir=/lib \
|
|
--sysconfdir=/etc \
|
|
--disable-static \
|
|
--enable-ssl \
|
|
--enable-gnutls=yes \
|
|
--enable-cdsassl=no \
|
|
--without-php \
|
|
--disable-pam \
|
|
--disable-avahi \
|
|
--disable-dnssd \
|
|
--disable-webif \
|
|
--disable-tcp-wrappers \
|
|
--without-java \
|
|
--with-icondir=/share/icons \
|
|
--with-menudir=/share/applications
|
|
|
|
make
|
|
make BUILDROOT=$pkg install
|
|
|
|
cp LICENSE.txt $pkgdocs/
|
|
|
|
(
|
|
cd $pkg/etc/dbus-1/system.d
|
|
mv cups.conf cups.conf.new
|
|
cd $pkg/etc/cups
|
|
for file in *.conf ; do
|
|
if [ -f $file ] ; then
|
|
mv $file $file.new
|
|
fi
|
|
done
|
|
)
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
ce2ed51f0601af17aeaefd676e56eb4b5acc82a46ecd3273ac034101808ac02795aacd1dd198cdb5b4c389accdd8cd69ca0e5457834bd0c245858299ef0f1e89 cups-2.1.4-source.tar.lz
|
|
"
|