[arch-commits] Commit in libsmbios/repos (staging-x86_64 staging-x86_64/PKGBUILD)

Evangelos Foutras foutrelis at archlinux.org
Sun Jul 8 12:51:10 UTC 2018


    Date: Sunday, July 8, 2018 @ 12:51:09
  Author: foutrelis
Revision: 328064

archrelease: copy trunk to staging-x86_64

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

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: libsmbios/repos/staging-x86_64/PKGBUILD (from rev 328063, libsmbios/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2018-07-08 12:51:09 UTC (rev 328064)
@@ -0,0 +1,51 @@
+# $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.4.1
+pkgrel=2
+pkgdesc="A library for providing access to as much BIOS information as possible"
+arch=('x86_64')
+url="https://github.com/dell/libsmbios"
+license=('GPL' 'custom')
+depends=('gcc-libs')
+makedepends=('libxml2' 'python' 'chrpath' 'doxygen' git cppunit help2man)
+optdepends=('python: tools')
+_commit=465dce1b625f11f38698aec3b5f48751b85f0942  # tags/v2.4.1^0
+source=("git+https://github.com/dell/libsmbios.git#commit=$_commit")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^v//;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  ./autogen.sh --no-configure
+}
+
+build() {
+  unset MAKEFLAGS
+  cd $pkgname
+  mkdir build
+  cd build
+  ../configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --disable-static
+  make
+}
+
+package() {
+  cd $pkgname/build
+  make DESTDIR="${pkgdir}" install
+
+  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/"
+
+  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