summaryrefslogtreecommitdiff
path: root/extra/libsmbios
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/libsmbios
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/libsmbios')
-rw-r--r--extra/libsmbios/PKGBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/extra/libsmbios/PKGBUILD b/extra/libsmbios/PKGBUILD
new file mode 100644
index 000000000..9945172d7
--- /dev/null
+++ b/extra/libsmbios/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id: PKGBUILD 105518 2011-01-10 10:17:49Z jgc $
+# 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.2.26
+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=('8ae63da74912deffa5b6b2602879c7a9')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir build
+ cd build
+ PYTHON=python2 ../configure --prefix=/usr --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/sbin/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/sbin/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}/"
+}