blob: b7c6b00b034ab45ae068e791fd3a408f2e182a0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: shimi <shimi.chen@gmail.com>
# Contributor: Dmytro Meleshko <dmytro.meleshko@gmail.com>
pkgname=imagewriter
_pkgver=1.10.1432200249.1d253d9-2.21
pkgver=${_pkgver//-/.}
pkgrel=1
pkgdesc="A graphical utility for writing raw disk images & hybrid isos to USB keys"
arch=('x86_64')
url="https://github.com/openSUSE/imagewriter"
license=('GPL-2.0-or-later')
depends=('hicolor-icon-theme' 'qt5-base' 'udisks2')
source=("https://download.opensuse.org/tumbleweed/repo/src-oss/src/$pkgname-${_pkgver}.src.rpm")
sha256sums=('bf05fb2865be517e62ffd29bd03e31fcdaac545d84b79e9b8e6fad1db73df0ec')
prepare() {
bsdtar xvf "$pkgname-${_pkgver%-*}.tar.xz"
cd "$pkgname-${_pkgver%-*}"
patch -Np1 -i ../0001-remove-include-sys-sysctl.h.patch
# Replace calls to deprecated toAscii method with calls to toLatin1
find . -type f -exec sed -i 's/toAscii/toLatin1/g' {} \;
}
build() {
cd "$pkgname-${_pkgver%-*}"
CFLAGS="$CFLAGS -DKIOSKHACK"
qmake-qt5 PREFIX="$pkgdir/usr" DEFINES=USEUDISKS2 "$pkgname.pro"
make
}
package() {
cd "$pkgname-${_pkgver%-*}"
make DESTDIR="$pkgdir/" install
}
|