summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2cbd1f99eb3d48c0f9ec7740fc4ef22682819a30 (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
# Maintainer: Saurabh Kumar Sharma <imesskayesss@protonmail.com>

_appname=imgbrd-grabber
pkgname="${_appname}-bin"
pkgver=7.12.2
pkgrel=2
pkgdesc="Unofficial binary installer for ImgBrd Grabber"
arch=("x86_64")
depends=('qt6-multimedia' 'qt6-declarative' 'nodejs' 'qt6-networkauth' 'qt6-base' 'krb5')
url="https://github.com/Bionus/imgbrd-grabber"
license=("Apache-2.0 License")
options=('!strip')
conflicts=('imgbrd-grabber-git')

source=("${pkgver}.tar.gz::https://github.com/Bionus/imgbrd-grabber/releases/download/v${pkgver}/Grabber_v${pkgver}.tar.gz")
sha1sums=("SKIP")

package(){
    install -dm755 "${pkgdir}/"{opt/${_appname},usr/share/applications,usr/bin,usr/share/icons/}
    cp -a "${srcdir}/." "${pkgdir}/opt/${_appname}/"
    cp -r "${srcdir}/hicolor" "${pkgdir}/usr/share/icons/hicolor"
    ln -s "/opt/${_appname}/"{Grabber,Grabber-cli} "${pkgdir}/usr/bin/"
    install -D "${srcdir}/org.bionus.Grabber.desktop" -t "${pkgdir}/usr/share/applications/"
}