heynote icon indicating copy to clipboard operation
heynote copied to clipboard

Feature Request: Arch Linux package

Open lfrancke opened this issue 1 year ago • 3 comments

It'd be great if there were a package for Arch Linux: https://aur.archlinux.org/

lfrancke avatar Dec 22 '23 15:12 lfrancke

It works fine with https://github.com/TheAssassin/AppImageLauncher, which is in the AUR

endigma avatar Dec 22 '23 16:12 endigma

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;

ojoanalogo avatar Dec 23 '23 07:12 ojoanalogo

collecting into https://github.com/heyman/heynote/issues/104 ?

endigma avatar Jan 02 '24 01:01 endigma