lilac/repo/masscode/PKGBUILD

38 lines
1.3 KiB
Bash
Raw Normal View History

2023-08-14 15:02:17 +00:00
# Maintainer: Anton Reshetov
pkgname=masscode
2023-09-29 16:02:52 +00:00
pkgver=3.8.0
2023-08-14 15:02:17 +00:00
pkgrel=1
pkgdesc="A free and open source code snippets manager for developers "
arch=("x86_64")
url="https://github.com/massCodeIO/massCode"
license=("AGPL-3.0")
depends=(electron)
makedepends=(squashfs-tools)
source=("https://github.com/massCodeIO/massCode/releases/download/v${pkgver}/masscode_${pkgver}_amd64.snap"
"masscode.png::https://raw.githubusercontent.com/massCodeIO/massCode/master/config/icons/256x256.png"
"masscode.desktop"
)
2023-09-29 16:02:52 +00:00
sha256sums=('cb0aed60d69c4b6b6097c1da81c8d0c75a8808aa71308cff38391924453287ac'
2023-08-14 15:02:17 +00:00
'6e54dbd534b364727ca2514e21a49742a939c454867f46da113bba2c3d2777ec'
'a2e9a02993e1b8efc74fbee597219a84eeb776d41d1dcf0ae9742c2d9fcb9f15')
build() {
unsquashfs "masscode_${pkgver}_amd64.snap"
}
package() {
install -d "$pkgdir/opt/masscode"
install -d "$pkgdir/usr/bin"
install -d "$pkgdir/usr/share/icons"
install -d "$pkgdir/usr/share/applications"
cp masscode.png "$pkgdir/usr/share/icons"
echo "#!/bin/env bash
NODE_ENV='' electron /opt/masscode/app.asar" >> "$pkgdir/usr/bin/masscode"
chmod +x "$pkgdir/usr/bin/masscode"
cp masscode.desktop "$pkgdir/usr/share/applications"
cd squashfs-root
cp resources/app.asar "$pkgdir/opt/masscode"
}