From 56e83411fa1692493bd3a8f034fcecb9c5515cc8 Mon Sep 17 00:00:00 2001 From: proledatarian Date: Sun, 16 Apr 2023 13:09:20 +0000 Subject: [PATCH] Upload New File --- standardnotes-bin/PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 standardnotes-bin/PKGBUILD diff --git a/standardnotes-bin/PKGBUILD b/standardnotes-bin/PKGBUILD new file mode 100644 index 0000000..4ed626c --- /dev/null +++ b/standardnotes-bin/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Luis Martinez +# Contributor: Plague-doctor +# Contributor: Arne BrĂ¼cher + +pkgname=standardnotes-bin +pkgver=3.150.54 +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') +makedepends=('asar') +options=(!strip) +provides=('standardnotes-desktop') +conflicts=('standardnotes-desktop') +install=standardnotes.install +source=("standard-notes.sh") +source_x86_64=("$pkgname-$pkgver-x86_64.AppImage::$url/releases/download/%40standardnotes%2Fdesktop%40$pkgver/standard-notes-$pkgver-linux-x86_64.AppImage") +source_aarch64=("$pkgname-$pkgver-aarch64.AppImage::$url/releases/download/%40standardnotes%2Fdesktop%40$pkgver/standard-notes-$pkgver-linux-arm64.AppImage") +sha256sums=('71f0811526d428b541ef39ee804b257ed60b1b9b5d620436c79ed77e17eb4d16') +sha256sums_x86_64=('204a662b79e92d4f1906e3302385c1ceca99f53fb5b52b4b5b18ce9d1efbea8f') +sha256sums_aarch64=('48f236b8016d16c90ce310c3813214a529ffabe754adcce2fea4a89fa5c341ba') + +prepare() { + chmod +x "$pkgname-$pkgver-$CARCH.AppImage" + "./$pkgname-$pkgver-$CARCH.AppImage" --appimage-extract 2>&1 >/dev/null + asar e squashfs-root/resources/app.asar squashfs-root/resources/app + rm squashfs-root/resources/{app.asar,app-update.yml} +} + +package() { + install -dv "$pkgdir/opt/$pkgname/" + chmod -R 755 squashfs-root/{usr,locales,resources} + cp -av --no-preserve=ownership squashfs-root/* "$pkgdir/opt/$pkgname/" + + install -Dv "standard-notes.sh" "$pkgdir/usr/bin/standard-notes" + install -dv "$pkgdir/usr/share/icons/hicolor/512x512/apps/" + install -dv "$pkgdir/usr/share/applications/" + + sed -i -E '/Exec/c\Exec=env DESKTOPINTEGRATION=false /usr/bin/standard-notes' "$pkgdir/opt/$pkgname/standard-notes.desktop" + ln -sv "/opt/$pkgname/standard-notes.desktop" "$pkgdir/usr/share/applications/" + ln -sv "/opt/$pkgname/standard-notes.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/" +}