heynote
heynote copied to clipboard
Feature Request: Arch Linux package
It'd be great if there were a package for Arch Linux: https://aur.archlinux.org/
It works fine with https://github.com/TheAssassin/AppImageLauncher, which is in the AUR
Kudos to heyman for heynote, great app!
Here's a sample PKGBUILD you could use, I've tested it on my system and works great, altought it could use some improvements! This is one of the first pkgbuilds I've written
pkgname=heynote
pkgver=1.4.2
pkgrel=4
pkgdesc="HeyNote scratchpad"
arch=('x86_64')
url="https://github.com/heyman/heynote"
license=('MIT')
depends=('npm') # Adjust dependencies as needed
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=(
"6a4efec095ef0d2676ea7f93238430f8c56d3c57426bf9711dfd057d97a1eb4e"
)
build() {
cd "$pkgname-$pkgver"
npm install -g npm@latest
# Install dependencies
npm install --quiet
# Build the app
npm run build
}
package() {
cd "$pkgname-$pkgver"
# copy content from release folder to /usr/share
mkdir -p "$pkgdir/usr/share/$pkgname"
cp -r release/$pkgver/linux-unpacked/* "$pkgdir/usr/share/$pkgname"
cp resources/icon.png "$pkgdir/usr/share/$pkgname/icon.png"
# copy .desktop file to /usr/share/applications
mkdir -p "$pkgdir/usr/share/applications"
cp -a ../../heynote.desktop "$pkgdir/usr/share/applications"
}
Desktop file (lives next to PKGBUILD):
[Desktop Entry]
Type=Application
Name=Heynote
Exec=/usr/share/heynote/heynote
Icon=/usr/share/heynote/icon.png
Terminal=false
Categories=Utility;
collecting into https://github.com/heyman/heynote/issues/104 ?