blob: 043320c0f12f59adaf9d66bcbf7c12765809f1cb (
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: Arne BrĂ¼cher <archlinux [at] arne-bruecher [dot] de>
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: Plague-doctor <plague at privacyrequired dot com>
pkgname=standardnotes-bin
_realname="Standard Notes"
pkgver=3.195.13
pkgrel=1
pkgdesc='Free, open-source encrypted notes app.'
arch=('x86_64' 'aarch64')
url='https://github.com/standardnotes/app'
license=('AGPL3')
depends=('hicolor-icon-theme')
options=(!strip)
provides=('standardnotes-desktop')
conflicts=('standardnotes-desktop')
install=standardnotes.install
source=("standard-notes.sh")
source_x86_64=("$pkgname-$pkgver-amd64.deb::$url/releases/download/%40standardnotes%2Fdesktop%40$pkgver/standard-notes-$pkgver-linux-amd64.deb")
source_aarch64=("$pkgname-$pkgver-aarch64.deb::$url/releases/download/%40standardnotes%2Fdesktop%40$pkgver/standard-notes-$pkgver-linux-arm64.deb")
sha256sums=('71f0811526d428b541ef39ee804b257ed60b1b9b5d620436c79ed77e17eb4d16')
sha256sums_x86_64=('ca0b33529e9a5878c40a14540a8633e31fb18f8cf166d7de0c2a22a582fb00ef')
sha256sums_aarch64=('0413127b7f5fccb0e4899a6e1fe0b9b829b371ae116a877c5b28d2cd2308a4f6')
prepare() {
ar x "$pkgname-$pkgver-amd64.deb"
tar xf data.tar.xz
}
package() {
install -dv "$pkgdir/opt/$pkgname"
cp -r $srcdir/opt/Standard\ Notes/* "$pkgdir/opt/$pkgname/"
cp -r $srcdir/usr "$pkgdir/opt/$pkgname"
install -D "$srcdir/usr/share/applications/standard-notes.desktop" "$pkgdir/opt/$pkgname"
install -D "standard-notes.sh" "$pkgdir/usr/bin/standard-notes"
install -d "$pkgdir/usr/share/icons/hicolor/512x512/apps/"
install -d "$pkgdir/usr/share/applications/"
sed -i -E '/Exec/c\Exec=env DESKTOPINTEGRATION=false /usr/bin/standard-notes' "$pkgdir/opt/$pkgname/standard-notes.desktop"
ln -s "/opt/$pkgname/standard-notes.desktop" "$pkgdir/usr/share/applications/"
ln -s "/opt/$pkgname/usr/share/icons/hicolor/512x512/apps/standard-notes.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/"
}
|