mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-14 06:59:05 +08:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
_pkgbasename=gdk-pixbuf2
|
|
pkgname=lib32-$_pkgbasename
|
|
pkgver=2.36.0
|
|
pkgrel=1
|
|
pkgdesc="An image loading library (32-bit)"
|
|
arch=('x86_64')
|
|
url="http://www.gtk.org/"
|
|
license=('LGPL2.1')
|
|
depends=(lib32-glib2 lib32-libpng lib32-libtiff lib32-libjpeg lib32-libx11
|
|
"$_pkgbasename=$pkgver")
|
|
makedepends=(gcc-multilib)
|
|
options=('!docs')
|
|
install=gdk-pixbuf2.install
|
|
source=(http://download.gnome.org/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-${pkgver}.tar.xz)
|
|
sha256sums=('85ab52ce9f2c26327141b3dcf21cca3da6a3f8de84b95fa1e727d8871a23245c')
|
|
|
|
build() {
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
cd "${srcdir}/gdk-pixbuf-${pkgver}"
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 \
|
|
--without-libjasper \
|
|
--with-x11 \
|
|
--with-included-loaders=png
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/gdk-pixbuf-${pkgver}"
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
rm -rf "${pkgdir}"/etc
|
|
rm -rf "${pkgdir}"/usr/{include,share}
|
|
|
|
cd "${pkgdir}"/usr/bin
|
|
mv gdk-pixbuf-query-loaders gdk-pixbuf-query-loaders-32
|
|
rm gdk-pixbuf-pixdata
|
|
rm gdk-pixbuf-csource
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|