summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 89a09eedce23f393accec4eb7d287d5398cfab60 (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
45
# Maintainer: Rsplwe <i@rsplwe.com>

pkgname=snipaste
pkgver=2.9_Beta2
pkgrel=1
pkgdesc="Snip & Paste!"
arch=('x86_64')
url="https://www.snipaste.com"
license=('custom')
options=(!strip)
depends=()
makedepends=()

source_x86_64=(
	"Snipaste.AppImage::https://download.snipaste.com/archives/Snipaste-2.9-Beta2-x86_64.AppImage"
)
sha256sums_x86_64=(
	"549bf0dccd4e85f8e2fcfa08c67e2073d29c165e87d704585b93db7f5a79ae58"
)

noextract=('Snipaste.AppImage')

prepare () {
	chmod +x Snipaste.AppImage
	./Snipaste.AppImage --appimage-extract
}

package() {
	install -d "$pkgdir"/opt/$pkgname
	cp -a ./squashfs-root/usr/. "$pkgdir"/opt/$pkgname

	chmod 755 "$pkgdir"/opt/$pkgname/bin/Snipaste
	chmod 755 "$pkgdir"/opt/$pkgname/bin/wlhelper

	install -d "$pkgdir"/usr/bin
	ln -s /opt/$pkgname/bin/Snipaste "$pkgdir"/usr/bin/Snipaste
	ln -s /opt/$pkgname/bin/wlhelper "$pkgdir"/usr/bin/wlhelper

	install -d "$pkgdir"/usr/share/applications
	ln -s /opt/$pkgname/share/applications/Snipaste.desktop "$pkgdir"/usr/share/applications/Snipaste.desktop

	install -d "$pkgdir"/usr/share/icons
	cp -a ./squashfs-root/usr/share/icons/. "$pkgdir"/usr/share/icons

}