Created
December 29, 2023 13:48
-
-
Save sukanka/134b2548760178fd8a8d74d7c0254eb7 to your computer and use it in GitHub Desktop.
snipaste PKGBUILD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: sukanka<su975853527[AT]gmail.com> | |
_pkgname=snipaste | |
pkgname=$_pkgname-bin | |
provides=($_pkgname) | |
pkgver=2.8.8 | |
pkgrel=1 | |
pkgdesc="Snip & Paste" | |
arch=('x86_64' 'aarch64') | |
license=('unknown') | |
url="https://www.snipaste.com/" | |
depends=('qt6-base' 'qt6-5compat' 'qt6-multimedia' 'qt6-svg') | |
source_x86_64=("${_pkgname}-${pkgver}-x86_64.AppImage::https://download.snipaste.com/archives/Snipaste-${pkgver}-Beta-x86_64.AppImage") | |
makedepends=('p7zip') | |
sha512sums_x86_64=('15dde43fb9e61d75879ad25e37a9035b183989858d791d91aea4ff3ced47147a0e39ebd97dea5f4a91a927939d48c8d194341dc4acb7d8ed7f6021c5a14ff180') | |
prepare() { | |
cd "$srcdir" | |
7z x ${_pkgname}-${pkgver}-x86_64.AppImage | |
find . -type d|xargs -I {} chmod a+rx {} | |
chmod a+rx usr/bin/Snipaste | |
} | |
package() { | |
cd "$srcdir" | |
cp -r usr "$pkgdir" | |
rm -rf "$pkgdir"/usr/{lib,plugins,share/doc,bin/qt.conf} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment