summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74d05a1811507a137d89a2b4691d38d10b10166d (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
37
38
39
40
41
42
43
44
# Maintainer: jakka <jakkadoujin at gmail dot com>

pkgname=hydownloader-systray-git
pkgver=r136.b750130
pkgrel=1
pkgdesc="Remote management GUI for hydownloader"
arch=('i686' 'x86_64')
url="https://gitgud.io/thatfuckingbird/hydownloader-systray"
depends=('qt6-base')
makedepends=('cmake' 'qt6-tools' 'qt6-base')
provides=('hydownloader-systray')
license=('GNU AGPL')
source=(
    "$pkgname"::"git+https://gitgud.io/thatfuckingbird/hydownloader-systray.git"
    "hydownloader-systray.desktop"
)
sha512sums=(
    'SKIP'
    '1f2a094a32cdb88751c7b1ea2e2babaca361eface09c8ec34c79fba68dfa61f33b40bad780cba9bdde62a2c0a81886e01a69ac39cb7e8bd28e52c85e1512fd21'
)
optdepends=(
    'hydownloader-git: Alternative download system for Hydrus'
    'hydrus: Danbooru-like image tagging and searching system for the desktop'
)

pkgver() {
  cd "$srcdir/$pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/$pkgname"
  git submodule update --init
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release .
  make
}

package() {
 cd "$srcdir/$pkgname"
 DESTDIR="$pkgdir" make install
 install -d -m755 "${pkgdir}/usr/share/applications"
 install -m644 "../hydownloader-systray.desktop" "${pkgdir}/usr/share/applications/hydownloader-systray.desktop"
 install -Dm644 "./icon/hydownloader-systray.png" "${pkgdir}/usr/share/icons/hydownloader-systray.png"
}