diff options
Diffstat (limited to 'abs/core')
-rw-r--r-- | abs/core/libsmbios/PKGBUILD | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/abs/core/libsmbios/PKGBUILD b/abs/core/libsmbios/PKGBUILD index 1c1ba7b..c996a28 100644 --- a/abs/core/libsmbios/PKGBUILD +++ b/abs/core/libsmbios/PKGBUILD @@ -1,36 +1,40 @@ -# $Id: PKGBUILD 511 2008-04-20 12:39:44Z jgc $ +# $Id: PKGBUILD 78087 2010-04-19 09:25:42Z dgriffiths $ # Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: Alessio 'mOLOk' Bolognino <themolok@gmail.com> # Contributor: daniel g. siegel <dgsiegel@gmail.com> pkgname=libsmbios -pkgver=2.0.2 -pkgrel=1 +pkgver=2.2.16 +pkgrel=2 pkgdesc="A library for providing access to as much BIOS information as possible" -arch=(i686 x86_64) +arch=('i686' 'x86_64') url="http://linux.dell.com/libsmbios/main/index.html" license=('GPL' 'custom') -depends=('gcc-libs>=4.3.0') +depends=('gcc-libs>=4.3.3') +makedepends=('libxml2') +optdepends=('python: tools') source=(http://linux.dell.com/libsmbios/download/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz) options=('!libtool') -md5sums=('3d079038c08495c2a46ec20544168bb4') +md5sums=('6edf6659fbb77e7d0f60d5217a7d88ed') build() { - cd ${startdir}/src/${pkgname}-${pkgver} - ./configure --prefix=/usr --sysconfdir=/etc --disable-static || return 1 - - make || return 1 - make DESTDIR=${startdir}/pkg/ install || return 1 - - install -m755 -d ${startdir}/pkg/usr/include - - cp -r include/smbios ${startdir}/pkg/usr/include/smbios || return 1 - find ${startdir}/pkg/usr/include/smbios -type d -exec chmod 0755 {} \; || return 1 - find ${startdir}/pkg/usr/include/smbios -type f -exec chmod 0644 {} \; || return 1 - chown -R root:root ${startdir}/pkg/usr/include/smbios || return 1 + cd "${srcdir}/${pkgname}-${pkgver}" + mkdir build + cd build + ../configure --prefix=/usr --sysconfdir=/etc --disable-static || return 1 + mkdir -p out/libsmbios_c + mkdir -p out/libsmbios_c++ + LD_PRELOAD="" make || return 1 +} +package() { + cd "${srcdir}/${pkgname}-${pkgver}/build" + make DESTDIR="${pkgdir}" install || return 1 + install -m755 -d "${pkgdir}/usr/include" + cp -a ../src/include/* "${pkgdir}/usr/include/" || return 1 + cp -a out/public-include/* "${pkgdir}/usr/include/" || return 1 - rm -f ${startdir}/pkg/usr/include/smbios/version.h.in + rm -rf "${pkgdir}/etc/yum" - install -m755 -d ${startdir}/pkg/usr/share/licenses/${pkgname} - install -m644 COPYING-OSL ${startdir}/pkg/usr/share/licenses/${pkgname}/ || return 1 + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 ../COPYING-OSL "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 } |