Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
445
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
  2. # Contributor: Kaiting Chen <kaitocracy@gmail.com>
  3. # Contributor: Gergely Imreh <imrehg@gmail.com>
  4. # Contributor: champus, madeye, ranguvar and ninja_pt
  5.  
  6. pkgname=hwinfo
  7. pkgver=21.58
  8. pkgrel=1
  9. pkgdesc='Hardware detection tool from openSUSE'
  10. arch=('x86_64' 'armv7l')
  11. url='https://github.com/openSUSE/hwinfo'
  12. license=('GPL2')
  13. depends=('perl')
  14. makedepends=('flex' 'git' 'sysfsutils' 'patch')
  15. options=('!emptydirs')
  16. source=("https://github.com/openSUSE/$pkgname/archive/$pkgver.tar.gz"
  17. 'custom_ioctl.patch')
  18. sha256sums=('6708917d558e8768cfab65cd5a4fa0daa4326bd427b2455fac49c73137534ccf'
  19. '6e83b50aa34f31db5fe6de938402e7c4dda6ffa9ffe1346c076e4779018fcf1d')
  20.  
  21. prepare() {
  22. cd "$pkgname-$pkgver"
  23. patch -p0 -i ../custom_ioctl.patch
  24. echo 'touch changelog' > git2log
  25. }
  26.  
  27. build() {
  28. make -C "$pkgname-$pkgver" -j1 \
  29. HWINFO_VERSION="$pkgver" \
  30. CFLAGS+="-fPIC -I$srcdir/$pkgname-$pkgver/src/hd" \
  31. LIBDIR=/usr/lib
  32. }
  33.  
  34. package() {
  35. make -C "$pkgname-$pkgver" LIBDIR=/usr/lib DESTDIR="$pkgdir" install
  36. mv "$pkgdir/usr/sbin" "$pkgdir/usr/bin"
  37. }
  38.  
  39. # getver: https://github.com/openSUSE/hwinfo/releases
  40. # vim: ts=2 sw=2 et:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement