[arch-commits] Commit in hardinfo/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Jul 7 21:19:18 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:19:17
  Author: foutrelis
Revision: 660331

archrelease: copy trunk to community-staging-x86_64

Added:
  hardinfo/repos/community-staging-x86_64/
  hardinfo/repos/community-staging-x86_64/PKGBUILD
    (from rev 660330, hardinfo/trunk/PKGBUILD)

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

Copied: hardinfo/repos/community-staging-x86_64/PKGBUILD (from rev 660330, hardinfo/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:19:17 UTC (rev 660331)
@@ -0,0 +1,39 @@
+# Maintainer: Eric Bélanger <eric at archlinux.org>
+
+pkgname=hardinfo
+pkgver=0.5.1.816.g877ea2b
+_commit=877ea2bc7777626c6fe77b6934a09261f1f1409e
+pkgrel=2
+pkgdesc="A system information and benchmark tool."
+arch=('x86_64')
+url="https://github.com/lpereira/hardinfo"
+license=('GPL2')
+depends=('gtk2')
+makedepends=('cmake' 'git')
+source=($pkgname::git+https://github.com/lpereira/hardinfo#commit=$_commit)
+sha1sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --long | sed "s/^release-//;s/^0.5-/0.5.1-/;s/-/./g"
+}
+
+prepare() {
+  cd ${pkgname}
+  mkdir build
+}
+
+build() {
+  cd ${pkgname}/build
+  CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+  cmake \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    ..
+  make
+}
+
+package() {
+  cd ${pkgname}/build
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list