blob: 0dfd012019f5877ac3096cffd39118df5fb3b708 (
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
|
# Contributor: solopasha <daron439 at gmail dot com>
# Contributor: Aron Young <tkf6fkt at gmail dot com>
# Contributor: asuka minato
# Maintainer: tristanrw <hidden>
pkgname=remnote
pkgver=1.17.12
pkgrel=1
pkgdesc="All-in-one workspace for note-taking, learning, organizing thoughts and growing knowledge"
arch=('x86_64' 'aarch64')
depends=(bash electron28)
url="https://www.remnote.com"
license=('custom:Commercial')
_appimage="RemNote-${pkgver}.AppImage"
source=("https://download2.remnote.io/remnote-desktop2/RemNote-$pkgver.AppImage"
remnote.sh)
sha256sums=('97f4df28136b42b5e91470e1b5c339f18a68fb0884a115e58784974986450010'
'42aeb6d5c89ab3e15d44617c06f50082cfdb57bce78b04bdf8885b41bf6bd293')
prepare() {
chmod a+x $_appimage
./$_appimage --appimage-extract #extract elecron-app from appimage
sed -i -e "s|^Exec=.*|Exec=/usr/bin/$pkgname %U|" \
-e '/^X-AppImage-Version=.*/d' \
-e '/Categories=/s/=/&Office;/' squashfs-root/${pkgname}.desktop
}
# insert script into desktop-entry to start electron-app with correct version
package() {
#install script into /usr/bin and electron-app into /usr/lib
install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "squashfs-root/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname}"
# cp -av "squashfs-root/resources/app.asar.unpacked" "${pkgdir}/usr/lib/${pkgname}"
# chmod -R 755 "${pkgdir}/usr/lib/${pkgname}/app.asar.unpacked"
#strip cpp files
printf "remove c/cpp files\n"
find $pkgdir/usr/lib/$pkgname \( -name "*.c" -or -name "*.h" -or -name "*.mk" -or -name "*.Makefile" -or -name "*.cpp" -or -name "*.hpp" \) -print -delete
#install icons and .desktop
install -Dm644 "squashfs-root/remnote.png" -t "${pkgdir}/usr/share/pixmaps"
install -Dm644 "squashfs-root/${pkgname}.desktop" -t "${pkgdir}/usr/share/applications"
}
|