Guest User

Untitled

a guest
Jan 12th, 2025
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. # Maintainer: Mark Wagie <mark dot wagie at proton dot me>
  2. # Contributor: shimi <[email protected]>
  3. # Contributor: Dmytro Meleshko <[email protected]>
  4. #https://download.opensuse.org/tumbleweed/repo/src-oss/src/imagewriter-1.10.1432200249.1d253d9-2.21.src.rpm
  5. pkgname=imagewriter
  6. _pkgver=1.10.1432200249.1d253d9-2.21
  7. pkgver=${_pkgver//-/.}
  8. pkgrel=1
  9. pkgdesc="A graphical utility for writing raw disk images & hybrid isos to USB keys"
  10. arch=('x86_64')
  11. url="https://github.com/openSUSE/imagewriter"
  12. license=('GPL-2.0-or-later')
  13. depends=('hicolor-icon-theme' 'qt5-base' 'udisks2')
  14. source=("https://download.opensuse.org/tumbleweed/repo/src-oss/src/$pkgname-${_pkgver}.src.rpm")
  15. sha256sums=('bf05fb2865be517e62ffd29bd03e31fcdaac545d84b79e9b8e6fad1db73df0ec')
  16.  
  17. prepare() {
  18. bsdtar xvf "$pkgname-${_pkgver%-*}.tar.xz"
  19.  
  20. cd "$pkgname-${_pkgver%-*}"
  21. patch -Np1 -i ../0001-remove-include-sys-sysctl.h.patch
  22.  
  23. # Replace calls to deprecated toAscii method with calls to toLatin1
  24. find . -type f -exec sed -i 's/toAscii/toLatin1/g' {} \;
  25. }
  26.  
  27. build() {
  28. cd "$pkgname-${_pkgver%-*}"
  29. CFLAGS="$CFLAGS -DKIOSKHACK"
  30. qmake-qt5 PREFIX="$pkgdir/usr" DEFINES=USEUDISKS2 "$pkgname.pro"
  31. make
  32. }
  33.  
  34. package() {
  35. cd "$pkgname-${_pkgver%-*}"
  36. make DESTDIR="$pkgdir/" install
  37. }
  38.  
Advertisement
Add Comment
Please, Sign In to add comment