[arch-commits] Commit in hwinfo/trunk (PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Wed Aug 10 21:58:36 UTC 2016


    Date: Wednesday, August 10, 2016 @ 21:58:36
  Author: arodseth
Revision: 186366

upgpkg: hwinfo 21.30-1

Modified:
  hwinfo/trunk/PKGBUILD

----------+
 PKGBUILD |   27 ++++++++++++---------------
 1 file changed, 12 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-08-10 21:43:48 UTC (rev 186365)
+++ PKGBUILD	2016-08-10 21:58:36 UTC (rev 186366)
@@ -5,41 +5,38 @@
 # Contributor: champus, madeye, ranguvar and ninja_pt
 
 pkgname=hwinfo
-pkgver=21.23_1.2
-_fn="$pkgname-${pkgver/_/-}.src.rpm"
+pkgver=21.30
 pkgrel=1
 pkgdesc='Hardware detection tool from openSUSE'
 arch=('x86_64' 'i686')
-url='http://download.opensuse.org/source/factory/repo/oss/suse/src/'
+url='https://github.com/openSUSE/hwinfo'
 license=('GPL2')
 depends=('libx86emu' 'bash' 'perl')
-makedepends=('sysfsutils' 'rpmextract' 'flex' 'git')
+makedepends=('sysfsutils' 'flex' 'git')
 options=('!emptydirs')
-source=("http://download.opensuse.org/source/factory/repo/oss/suse/src/$_fn"
+source=("https://github.com/openSUSE/$pkgname/archive/$pkgver.tar.gz"
         'custom_ioctl.patch')
-sha256sums=('361ca284d1912f3d1aecdf22737db1c949addb1e48d0f3f3fc3376e95fb7b8ac'
+sha256sums=('67e60ccb03d6c007ca1ad3754ae09511d211856d61e4a739516764d006de5824'
             '6e83b50aa34f31db5fe6de938402e7c4dda6ffa9ffe1346c076e4779018fcf1d')
 
 prepare() {
-  # Wish upstream could just provide a normal $pkgname-$pkgver.tar.gz...
-  rpmextract.sh "$_fn"
-  tar Jxf "${_fn%-*.*}.tar.xz"
-
   # Patching
-  cd "${_fn%-*.*}"
+  cd "$pkgname-$pkgver"
   patch -p0 -i ../custom_ioctl.patch
+  echo 'touch changelog' > git2log
 }
 
 build() {
-  make -C "${_fn%-*.*}" -j1 \
-    CFLAGS+="-fPIC -I$srcdir/${_fn%-*.*}/src/hd" \
+  make -C "$pkgname-$pkgver" -j1 \
+    HWINFO_VERSION="$pkgver" \
+    CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" \
     LIBDIR=/usr/lib
 }
 
 package() {
-  make -C "${_fn%-*.*}" LIBDIR=/usr/lib DESTDIR="$pkgdir" install
+  make -C "$pkgname-$pkgver" LIBDIR=/usr/lib DESTDIR="$pkgdir" install
   mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
 }
 
-# getver: -u 4 https://tracker.debian.org/pkg/hwinfo
+# getver: https://github.com/openSUSE/hwinfo/releases
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list