[arch-commits] Commit in libsmbios/repos (4 files)

Allan McRae allan at nymeria.archlinux.org
Fri May 31 00:44:31 EDT 2013


    Date: Friday, May 31, 2013 @ 06:44:31
  Author: allan
Revision: 186760

archrelease: copy trunk to staging-i686, staging-x86_64

Added:
  libsmbios/repos/staging-i686/
  libsmbios/repos/staging-i686/PKGBUILD
    (from rev 186759, libsmbios/trunk/PKGBUILD)
  libsmbios/repos/staging-x86_64/
  libsmbios/repos/staging-x86_64/PKGBUILD
    (from rev 186759, libsmbios/trunk/PKGBUILD)

-------------------------+
 staging-i686/PKGBUILD   |   47 ++++++++++++++++++++++++++++++++++++++++++++++
 staging-x86_64/PKGBUILD |   47 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 94 insertions(+)

Copied: libsmbios/repos/staging-i686/PKGBUILD (from rev 186759, libsmbios/trunk/PKGBUILD)
===================================================================
--- staging-i686/PKGBUILD	                        (rev 0)
+++ staging-i686/PKGBUILD	2013-05-31 04:44:31 UTC (rev 186760)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
+# Contributor: daniel g. siegel <dgsiegel at gmail.com> 
+
+pkgname=libsmbios
+pkgver=2.2.28
+pkgrel=2
+pkgdesc="A library for providing access to as much BIOS information as possible"
+arch=('i686' 'x86_64')
+url="http://linux.dell.com/libsmbios/main/index.html"
+license=('GPL' 'custom')
+depends=('gcc-libs')
+makedepends=('libxml2' 'python2' 'chrpath')
+optdepends=('python2: tools')
+source=(http://linux.dell.com/libsmbios/download/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+options=('!libtool')
+md5sums=('4e167e8d108e287defc3c461f50ef159')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  mkdir build
+  cd build
+  PYTHON=python2 ../configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --disable-static
+  mkdir -p out/libsmbios_c
+  mkdir -p out/libsmbios_c++
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+
+  chrpath -d "${pkgdir}/usr/bin/smbios-sys-info-lite"
+
+  cp -a ../src/include/* "${pkgdir}/usr/include/"
+  cp -a out/public-include/* "${pkgdir}/usr/include/"
+
+  rm -rf "${pkgdir}/etc/yum"
+  rm -rf "${pkgdir}/usr/lib/yum-plugins"
+
+  sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|g' \
+      -i "${pkgdir}"/usr/bin/smbios-{{wakeup,token,wireless}-ctl,lcd-brightness,rbu-bios-update,passwd,sys-info}
+
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 ../COPYING-OSL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}

Copied: libsmbios/repos/staging-x86_64/PKGBUILD (from rev 186759, libsmbios/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2013-05-31 04:44:31 UTC (rev 186760)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+# Contributor: Alessio 'mOLOk' Bolognino <themolok at gmail.com>
+# Contributor: daniel g. siegel <dgsiegel at gmail.com> 
+
+pkgname=libsmbios
+pkgver=2.2.28
+pkgrel=2
+pkgdesc="A library for providing access to as much BIOS information as possible"
+arch=('i686' 'x86_64')
+url="http://linux.dell.com/libsmbios/main/index.html"
+license=('GPL' 'custom')
+depends=('gcc-libs')
+makedepends=('libxml2' 'python2' 'chrpath')
+optdepends=('python2: tools')
+source=(http://linux.dell.com/libsmbios/download/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.bz2)
+options=('!libtool')
+md5sums=('4e167e8d108e287defc3c461f50ef159')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  mkdir build
+  cd build
+  PYTHON=python2 ../configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --disable-static
+  mkdir -p out/libsmbios_c
+  mkdir -p out/libsmbios_c++
+  make
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}/build"
+  make DESTDIR="${pkgdir}" install
+
+  chrpath -d "${pkgdir}/usr/bin/smbios-sys-info-lite"
+
+  cp -a ../src/include/* "${pkgdir}/usr/include/"
+  cp -a out/public-include/* "${pkgdir}/usr/include/"
+
+  rm -rf "${pkgdir}/etc/yum"
+  rm -rf "${pkgdir}/usr/lib/yum-plugins"
+
+  sed -e 's|#!/usr/bin/python|#!/usr/bin/python2|g' \
+      -i "${pkgdir}"/usr/bin/smbios-{{wakeup,token,wireless}-ctl,lcd-brightness,rbu-bios-update,passwd,sys-info}
+
+  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -m644 ../COPYING-OSL "${pkgdir}/usr/share/licenses/${pkgname}/"
+}



More information about the arch-commits mailing list