33 lines
1022 B
Bash
33 lines
1022 B
Bash
# Maintainer: Martchus <martchus@gmx.net>
|
|
# Contributor: Felix Golatofski <contact@xdfr.de>
|
|
# Contributor: Tom Nguyen <tom81094@gmail.com>
|
|
# Contributor: Antergos Developers <dev@antergos.com>
|
|
|
|
pkgname=mediawriter
|
|
_pkgname=MediaWriter
|
|
_author=FedoraQt
|
|
pkgver=5.0.2
|
|
pkgrel=1
|
|
pkgdesc='Fedora Media Writer - Write Fedora Images to Portable Media'
|
|
arch=('x86_64')
|
|
url="https://github.com/${_author}/${_pkgname}"
|
|
license=('GPL2')
|
|
depends=('xz' 'qt6-base' 'qt6-imageformats' 'qt6-tools' 'qt6-declarative' 'qt6-5compat' 'qt6-svg'
|
|
'adwaita-qt6')
|
|
optdepends=('udisks2: Disk Management Service for disk installation')
|
|
makedepends=('cmake' 'ninja')
|
|
source=("https://github.com/${_author}/${_pkgname}/archive/${pkgver}.tar.gz")
|
|
sha256sums=('c03c27b75960679fc6f4f2a9e6778982963bc231a180a8fd5e5f86cd62619168')
|
|
|
|
build() {
|
|
cmake -G Ninja -B build -S "${_pkgname}-${pkgver}" \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBEXECDIR=lib
|
|
cmake --build build
|
|
}
|
|
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|