mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 01:42:15 +08:00
52 lines
1.4 KiB
Bash
52 lines
1.4 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
|
|
|
_pkgbasename=libcups
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.0.1
|
|
pkgrel=1
|
|
pkgdesc="The CUPS Printing System - client libraries (32-bit)"
|
|
arch=('x86_64')
|
|
license=('GPL')
|
|
url="http://www.cups.org/"
|
|
depends=(lib32-krb5 lib32-libtiff lib32-libpng lib32-gnutls $_pkgbasename=$pkgver)
|
|
makedepends=(gcc-multilib)
|
|
source=(#ftp://ftp.easysw.com/pub/cups/${pkgver}/cups-${pkgver}-source.tar.bz2
|
|
http://www.cups.org/software/${pkgver}/cups-${pkgver}-source.tar.bz2{,.sig})
|
|
md5sums=('7f7c33071035fb20d0879929a42da711'
|
|
'SKIP')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd ${srcdir}/cups-${pkgver}
|
|
|
|
aclocal -I config-scripts
|
|
autoconf -I config-scripts
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--enable-raw-printing \
|
|
--disable-gssapi \
|
|
--disable-dbus \
|
|
--enable-threads \
|
|
--enable-libusb=no \
|
|
--with-optim="$CFLAGS" \
|
|
--disable-avahi \
|
|
--disable-dnssd \
|
|
--libdir=/usr/lib32
|
|
make libs
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/cups-${pkgver}
|
|
make BUILDROOT=${pkgdir} install-libs
|
|
rm -rf "${pkgdir}/usr/lib"
|
|
}
|
|
|