Date: Wednesday, February 14, 2018 @ 14:23:27
  Author: jgc
Revision: 317004

upgpkg: libsmbios 2.4.0-1

Update to 2.4.0, drop deprecated and disabled by default C++ library

Modified:
  libsmbios/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-02-14 11:08:56 UTC (rev 317003)
+++ PKGBUILD    2018-02-14 14:23:27 UTC (rev 317004)
@@ -4,7 +4,7 @@
 # Contributor: daniel g. siegel <dgsie...@gmail.com>
 
 pkgname=libsmbios
-pkgver=2.3.3+12+g59d5df9
+pkgver=2.4.0
 pkgrel=1
 pkgdesc="A library for providing access to as much BIOS information as 
possible"
 arch=('x86_64')
@@ -11,9 +11,9 @@
 url="https://github.com/dell/libsmbios";
 license=('GPL' 'custom')
 depends=('gcc-libs')
-makedepends=('libxml2' 'python2' 'chrpath' 'doxygen' git cppunit)
-optdepends=('python2: tools')
-_commit=59d5df9ea2deee3b03c02c68a5026733b0f193ba  # master
+makedepends=('libxml2' 'python' 'chrpath' 'doxygen' git cppunit help2man)
+optdepends=('python: tools')
+_commit=8d729b4833b5026932b28b60c9b15aa5ec058eca  # tags/v2.4.0^0
 source=("git+https://github.com/dell/libsmbios.git#commit=$_commit";)
 sha256sums=('SKIP')
 
@@ -32,7 +32,7 @@
   cd $pkgname
   mkdir build
   cd build
-  PYTHON=python2 ../configure --prefix=/usr --sbindir=/usr/bin 
--sysconfdir=/etc --disable-static --enable-libsmbios_cxx
+  ../configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc 
--disable-static
   make
 }
 
@@ -42,17 +42,10 @@
 
   chrpath -d "${pkgdir}/usr/bin/smbios-sys-info-lite"
   install -m755 -d "${pkgdir}/usr/include"
+
   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,keyboard,thermal}-ctl,lcd-brightness,passwd,sys-info,battery-ctl}
-
   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
   install -m644 ../COPYING-OSL "${pkgdir}/usr/share/licenses/${pkgname}/"
-
-  python2 -m compileall 
"${pkgdir}/usr/lib/python2.7/site-packages/libsmbios_c/"
 }

Reply via email to