Advertisement
Guest User

Untitled

a guest
May 4th, 2021
1,572
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None
  1. # Maintainer: shimi <shimi.chen@gmail.com>
  2. # Contributor: Dmytro Meleshko <dmytro.meleshko@gmail.com>
  3. # Contributor: Luna Jernberg <droidbittin@gmail.com>
  4.  
  5. pkgname=imagewriter
  6. pkgver=1.10.1432200249.1d253d9
  7. _release=2.6
  8. pkgrel=19
  9. pkgdesc="A graphical utility for writing raw disk images & hybrid isos to USB keys"
  10. arch=('i686' 'x86_64' 'aarch64')
  11. url='https://github.com/openSUSE/imagewriter'
  12. license=('GPL2')
  13. depends=('qt5-base' 'udisks2')
  14. source=("http://download.opensuse.org/tumbleweed/repo/src-oss/src/$pkgname-$pkgver-${_release}.src.rpm")
  15. sha512sums=('3ce42ae22726554cf1263aefc47fd0365013bd64502115f0d8e8b752f501778c85090c66b3cb209fa4ab5acbcc03889e46d9b216b1a93ffe344e3b0db4b6baca')
  16.  
  17. prepare() {
  18. cd $srcdir
  19. tar xvf $pkgname-$pkgver.tar.xz
  20. find . -name '*.cpp' -exec sed -i -e '/sysctl.h/d' {} \;
  21. find . -type f -exec sed -i 's/toAscii/toLatin1/g' {} \;
  22. }
  23.  
  24. build() {
  25. cd "$srcdir/$pkgname-$pkgver"
  26. CFLAGS="$CFLAGS -DKIOSKHACK"
  27. qmake-qt5 PREFIX="$pkgdir/usr" DEFINES=USEUDISKS2 $pkgname.pro
  28. make
  29. }
  30.  
  31. package() {
  32. cd "$srcdir/$pkgname-$pkgver"
  33. make DESTDIR="$pkgdir/" install
  34. }
  35.  
Advertisement
RAW Paste Data Copied
Advertisement