mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 23:47:21 +08:00
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
pkgname=libgsf
|
|
pkgver=1.14.34
|
|
pkgrel=1
|
|
arch=('x86_64')
|
|
pkgdesc="The GNOME Structured File Library is a utility library for reading and writing structured file formats"
|
|
url="http://www.gnome.org/"
|
|
license=('GPL' 'LGPL')
|
|
depends=('libxml2' 'glib2' 'bzip2')
|
|
makedepends=('intltool' 'pkgconfig' 'python2' 'gobject-introspection')
|
|
source=("http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/1.14/${pkgname}-${pkgver}.tar.xz")
|
|
sha256sums=('f0fea447e0374a73df45b498fd1701393f8e6acb39746119f8a292fb4a0cb528')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
PYTHON=/usr/bin/python2
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--mandir=/usr/share/man \
|
|
--disable-static \
|
|
--enable-introspection
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
#All those removes will strip gnome specific stuff
|
|
rm -f "${pkgdir}/usr/share/man/man1/gsf-office-thumbnailer.1"
|
|
rm -f "${pkgdir}/usr/lib/libgsf-gnome"*
|
|
rm -rf "${pkgdir}/usr/include/libgsf-1/gsf-gnome/"
|
|
rm -rf "${pkgdir}/etc/gconf"
|
|
rm -f "${pkgdir}/usr/lib/pkgconfig/libgsf-gnome-1.pc"
|
|
rm -f "${pkgdir}/usr/bin/gsf-office-thumbnailer"
|
|
rm -f "${pkgdir}"/usr/lib/python*/site-packages/gsf/gnomemodule.so
|
|
}
|