summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32d7b948ec5fb957cb701a1e59da13beb6d6eb5b (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
# Maintainer: Kazel <address at domain dot tld>
pkgname=usbguard-qt
pkgver=0.8.1
pkgrel=4
pkgdesc="USBGuard Qt GUI"

arch=("x86_64")
url="https://gitlab.com/WheelchairArtist/$pkgname"
license=('GPL-2.0-or-later')

replaces=('usbguard-applet-qt')
conflicts=('usbguard-applet-qt')

depends=("usbguard")
makedepends=("qt6-base")

source=($url/-/archive/$pkgver/$pkgname-$pkgver.tar.gz?path=src)
sha512sums=("SKIP")

prepare() {
    cd "${srcdir}/$pkgname-$pkgver-src/src"
    qmake6 -o Makefile usbguard-qt.pro

}

build() {
    cd "${srcdir}/$pkgname-$pkgver-src/src"
    make
}

package() {
    install -Dm 0755 -o root -g root "${srcdir}/$pkgname-$pkgver-src/src/$pkgname" "${pkgdir}/usr/bin/$pkgname"
    install -Dm 0644 -o root -g root "${srcdir}/$pkgname-$pkgver-src/src/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
    install -Dm 0644 -o root -g root "${srcdir}/$pkgname-$pkgver-src/src/resources/usbguard-icon.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
}