diff options
author | Alfonso Reyes | 2023-12-26 10:21:05 -0700 |
---|---|---|
committer | Alfonso Reyes | 2023-12-26 10:21:05 -0700 |
commit | 0e6d7f72fb615775ddfa836749cd8fbe27b6ae46 (patch) | |
tree | a44b1b98d30f1eabf998da522eb19897f8e22fa8 | |
download | aur-0e6d7f72fb615775ddfa836749cd8fbe27b6ae46.tar.gz |
first commit
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | .gitignore | 13 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | heynote.desktop | 7 |
4 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9559642cd92b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,12 @@ +pkgbase = heynote + pkgdesc = A dedicated scratchpad for developers + pkgver = 1.4.2 + pkgrel = 4 + url = https://github.com/heyman/heynote + arch = any + license = MIT + depends = npm + source = heynote-1.4.2.tar.gz::https://github.com/heyman/heynote/archive/v1.4.2.tar.gz + sha256sums = 6a4efec095ef0d2676ea7f93238430f8c56d3c57426bf9711dfd057d97a1eb4e + +pkgname = heynote diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..b73905529f23 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d3dfe3de42a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Alfonso Reyes <hola@alfon.so> +pkgname=heynote-git +pkgver=1.4.2 +pkgrel=4 +pkgdesc="A dedicated scratchpad for developers" + +arch=('any') +url="https://github.com/heyman/heynote" +license=('MIT') + +depends=('npm') +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" +} diff --git a/heynote.desktop b/heynote.desktop new file mode 100644 index 000000000000..70d0b55cbda3 --- /dev/null +++ b/heynote.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=Heynote +Exec=/usr/share/heynote/heynote +Icon=/usr/share/heynote/icon.png +Terminal=false +Categories=Utility;
\ No newline at end of file |