From e3da13ed34bab313d8ba71678bdd720313caa446 Mon Sep 17 00:00:00 2001 From: Melon Bread Date: Wed, 25 Aug 2021 07:46:20 -0400 Subject: [PATCH] Updated imgbrd-grabber-appimage 7.6.1 --- imgbrd-grabber-appimage/PKGBUILD | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 imgbrd-grabber-appimage/PKGBUILD diff --git a/imgbrd-grabber-appimage/PKGBUILD b/imgbrd-grabber-appimage/PKGBUILD new file mode 100644 index 0000000..4ee0473 --- /dev/null +++ b/imgbrd-grabber-appimage/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Rain Clark + +pkgname=imgbrd-grabber-appimage +pkgver=7.6.1 +pkgrel=1 +pkgdesc="Very customizable imageboard/booru downloader with powerful filenaming features." +arch=('x86_64') +url="https://github.com/Bionus/imgbrd-grabber" +license=('Apache') +depends=('hicolor-icon-theme' 'zlib' 'fuse') +makedepends=('p7zip') + +_pkgname="Grabber_v$pkgver-$arch.AppImage" +_upkgname=grabber + +noextract=('$_pkgname') +options=('!strip') + +source=(https://github.com/Bionus/imgbrd-grabber/releases/download/v${pkgver}/${_pkgname}) +sha256sums=('2429803d41f97f8650ec06f8c2394c34cf5eeed562081cfc0c2e58b3d321d491') + +prepare() { + cd "${srcdir}" + 7z x "${srcdir}/$_pkgname" $_upkgname.desktop usr/share/icons/hicolor/128x128/apps/$_upkgname.png + sed -i "s/Exec=Grabber/Exec=\/usr\/bin\/$_upkgname/" $_upkgname.desktop +} + +package() { + cd "${srcdir}" + install -Dm755 "$_pkgname" "${pkgdir}/opt/$_upkgname/$_upkgname.AppImage" + install -Dm644 "$_upkgname.desktop" "${pkgdir}/usr/share/applications/$_upkgname.desktop" + install -Dm644 "usr/share/icons/hicolor/128x128/apps/$_upkgname.png" "${pkgdir}/usr/share/icons/hicolor/128x128/apps/$_upkgname.png" + mkdir "${pkgdir}/usr/bin" + ln -s "/opt/$_upkgname/$_upkgname.AppImage" "${pkgdir}/usr/bin/$_upkgname" +} +