2022-01-12 18:53:19 +00:00
|
|
|
# Maintainer: Nemo <archlinux at captnemo dot in>
|
2022-01-08 08:55:14 +00:00
|
|
|
pkgname=notable-insiders-electron
|
|
|
|
pkgdesc='Insider build of the Notable note-taking app'
|
|
|
|
_electron=electron16
|
|
|
|
packager="nemo"
|
2022-02-16 16:37:51 +00:00
|
|
|
_pkgver="1.9.0-beta.6"
|
2022-01-08 08:55:14 +00:00
|
|
|
pkgver=${_pkgver/-/.}
|
|
|
|
pkgrel=1
|
|
|
|
arch=('any')
|
|
|
|
url='https://github.com/notable/notable-insiders'
|
|
|
|
license=('UNLICENSED')
|
|
|
|
makedepends=('asar')
|
|
|
|
depends=($_electron sh)
|
|
|
|
source=("$url/releases/download/v$_pkgver/Notable-$_pkgver.AppImage"
|
|
|
|
"notable.desktop")
|
2022-02-16 16:37:51 +00:00
|
|
|
sha512sums=('4cce1932dd78a8f089a83a55cac99bb6ec326593bd0694200c4291bf25b1946c5dd3871eb665b6cc949fc72efb98511b42b166ed57e779dec1b1fb63e4f1f7e7'
|
2022-01-08 08:55:14 +00:00
|
|
|
'3f95463979fb112d08077ecda88663a1bf978b6367b035037a6615039bafd7f3d248eaf1cce0182844f2b7d727ba8430cf2d954fe776314a1da966c5cbf99270')
|
|
|
|
provides=('notable')
|
|
|
|
conflicts=('notable-insiders-bin')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
local _source0=${source[0]##*/}
|
|
|
|
chmod +x $_source0
|
|
|
|
./$_source0 --appimage-extract
|
|
|
|
asar extract squashfs-root/resources/app.asar ${pkgname}
|
|
|
|
|
|
|
|
cat > notable.sh <<EOF
|
|
|
|
#!/bin/sh
|
|
|
|
exec $_electron /usr/lib/${pkgname} "\$@"x
|
|
|
|
EOF
|
|
|
|
chmod +x notable.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
install -dm 755 "${pkgdir}"/usr/lib/${pkgname}
|
|
|
|
cp --archive --no-preserve=ownership\
|
|
|
|
${pkgname} "${pkgdir}"/usr/lib
|
|
|
|
|
|
|
|
install -dm755 "${pkgdir}"/usr/share/icons/hicolor
|
|
|
|
install -Dm755 notable.sh "${pkgdir}"/usr/bin/notable
|
|
|
|
cp --archive \
|
|
|
|
--no-preserve=ownership \
|
|
|
|
squashfs-root/usr/share/icons/hicolor/* "${pkgdir}"/usr/share/icons/hicolor
|
|
|
|
find "${pkgdir}"/usr/share/icons/hicolor -type d -exec chmod 755 {} \;
|
|
|
|
|
|
|
|
install -Dm644 ${srcdir}/notable.desktop "${pkgdir}"/usr/share/applications/notable.desktop
|
|
|
|
}
|