[arch-commits] Commit in hwinfo/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Mon May 24 21:03:54 UTC 2021
Date: Monday, May 24, 2021 @ 21:03:53
Author: arodseth
Revision: 944928
upgpkg: hwinfo 21.74-1
Modified:
hwinfo/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-24 20:50:12 UTC (rev 944927)
+++ PKGBUILD 2021-05-24 21:03:53 UTC (rev 944928)
@@ -1,10 +1,12 @@
# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
# Contributor: Kaiting Chen <kaitocracy at gmail.com>
# Contributor: Gergely Imreh <imrehg at gmail.com>
-# Contributor: champus, madeye, ranguvar and ninja_pt
-
+# Contributor: champus
+# Contributor: madeye
+# Contributor: ranguvar
+# Contributor: ninja_pt
pkgname=hwinfo
-pkgver=21.73
+pkgver=21.74
pkgrel=1
pkgdesc='Hardware detection tool from openSUSE'
arch=(x86_64)
@@ -13,26 +15,26 @@
depends=(libx86emu perl-xml-parser perl-xml-writer)
makedepends=(flex git sysfsutils)
options=(!emptydirs)
-source=("$pkgname-$pkgver.tgz::https://github.com/openSUSE/$pkgname/archive/$pkgver.tar.gz"
+source=("git+$url#commit=f4de941605355b4be1d38dc2ee0206841474a47c" # tag: 21.74
custom_ioctl.patch)
-sha512sums=('3c6cd5f58541290024a441669a6d094cc10b37a9c264cae4db05172960fcff8123f2d1ca3253629b9ba437fdfbda2854e71f728715b8f8dabda41820276f590a'
- '88134fb6a08b86841c6b560afc9b8bb009c45bda1674437ef1b36f3d67ea37056717567252a314812dc30f174f0ad2be8768fba23469df42afbf5ebdd4666a3c')
+b2sums=('SKIP'
+ 'f54d3b7332a887d60ea259c4d00b258c9ea5a00de3a7103f750e5794e4d52f2dff9047ef2b0685cc5a76cbe2b6acaf7e08e559083332cd033193681da24e5ec3')
prepare() {
- cd $pkgname-$pkgver
+ cd $pkgname
patch -p0 -i ../custom_ioctl.patch
- echo 'touch changelog' > git2log
+ echo touch changelog > git2log
}
build() {
- make -C $pkgname-$pkgver -j1 \
- CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" \
+ make -C $pkgname -j1 \
+ CFLAGS+="-fPIC -I$srcdir/$pkgname/src/hd -w" \
HWINFO_VERSION="$pkgver" \
LIBDIR=/usr/lib
}
package() {
- make -C $pkgname-$pkgver LIBDIR=/usr/lib DESTDIR="$pkgdir" install
+ make -C $pkgname DESTDIR="$pkgdir" LIBDIR=/usr/lib install
mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
}
More information about the arch-commits
mailing list