diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2018-10-31 16:32:22 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2018-10-31 16:32:22 -0500 |
commit | ca33695c52400946717021ccf3013a9ad91a5109 (patch) | |
tree | 903523ad6a86fe502856f5d1765fd9e8843c7d3e /libre/hardinfo/PKGBUILD | |
parent | e56ac7546301276d6566a4a8839fa9f3a31dae22 (diff) | |
download | abslibre-ca33695c52400946717021ccf3013a9ad91a5109.tar.gz abslibre-ca33695c52400946717021ccf3013a9ad91a5109.tar.bz2 abslibre-ca33695c52400946717021ccf3013a9ad91a5109.zip |
hardinfo-0.5.1.816.g877ea2b-1.par1: updating version
Diffstat (limited to 'libre/hardinfo/PKGBUILD')
-rw-r--r-- | libre/hardinfo/PKGBUILD | 45 |
1 files changed, 22 insertions, 23 deletions
diff --git a/libre/hardinfo/PKGBUILD b/libre/hardinfo/PKGBUILD index 42203f403..a27009609 100644 --- a/libre/hardinfo/PKGBUILD +++ b/libre/hardinfo/PKGBUILD @@ -1,45 +1,44 @@ -# $Id # Maintainer (Arch): Eric Bélanger <eric@archlinux.org> # Contributor (Hyperbola): Márcio Silva <coadde@hyperbola.info> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> pkgname=hardinfo -pkgver=0.5.1 -pkgrel=8 -pkgrel+=.parabola1 +pkgver=0.5.1.816.g877ea2b +_commit=877ea2bc7777626c6fe77b6934a09261f1f1409e +pkgrel=1 +pkgrel+=.par1 pkgdesc="A system information and benchmark tool." pkgdesc+="(Parabola rebranded)" arch=('x86_64') arch+=('i686' 'armv7h') url="https://github.com/lpereira/hardinfo" license=('GPL2') -depends=('gtk2' 'libsoup') -depends+=('icu>=62' 'icu<63') -options=('!emptydirs') -source=(http://sourceforge.net/projects/hardinfo.berlios/files/${pkgname}-${pkgver}.tar.bz2 - fixsensors.patch hardinfo.distro hardinfo-gnu89.patch) -sha1sums=('983f0445aa60e02156bc5a5eaedeffb30b8e4d64' - 'd2151dce76dca238102937d0e15541f172bca530' - '9425e09191cd3a365a3afce57ca1973a6439fa57' - '7807fb252ad8391b61dfe1c3883ecdc232814091') +depends=('gtk2') +makedepends=('cmake' 'git') +depends+=('icu>=63' 'icu<64') +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}-${pkgver} - patch -p1 -i "${srcdir}/fixsensors.patch" - sed -i 's|/usr/lib64|/usr/lib|' configure - sed -i 's|lib64|lib|' binreloc.c - sed -i 's|{ DB_PREFIX "debian_version", "deb" },|{ DB_PREFIX "hardinfo.distro", "parabola" },{ DB_PREFIX "debian_version", "deb" },|' computer.h - patch -p1 -i ../hardinfo-gnu89.patch # Fix build (Debian) + cd ${pkgname} + mkdir build } build() { - cd ${pkgname}-${pkgver} - ./configure --prefix=/usr + cd ${pkgname}/build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + .. make } package() { - cd ${pkgname}-${pkgver} + cd ${pkgname}/build make DESTDIR="${pkgdir}" install - install -D -m644 "${srcdir}/hardinfo.distro" "${pkgdir}/etc/hardinfo.distro" } |