blob: 900fe0f4ecb9caf07cf0a82cbdf7f0fbf214bdc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
pkgname="lospec-editor-nativefier"
pkgver="0.1"
pkgrel="1"
pkgdesc="The Lospec Pixel Editor is a free, easy to use tool for creating pixel art"
arch=("x86_64")
license=("MIT")
url="https://lospec.com/pixel-editor/app"
makedepends=("nodejs" "npm" "nodejs-nativefier")
source=("${pkgname}.png" "${pkgname}.desktop")
sha256sums=("SKIP" "SKIP")
build() {
cd "${srcdir}"
nativefier "https://lospec.com/pixel-editor/app" \
--icon "${pkgname}.png" \
--maximize \
--internal-urls ".*" \
--name "Lospec Pixel Editor"
}
package() {
install -dm755 "${pkgdir}/opt/"
install -dm755 "${pkgdir}/usr/bin"
install -dm755 "${pkgdir}/usr/share/pixmaps"
install -dm755 "${pkgdir}/usr/share/applications"
cp -rf "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/lospec-editor.desktop"
cp -rf "${srcdir}/lospec-pixel-editor-linux-x64" "${pkgdir}/opt/"
ln -sf "/opt/lospec-pixel-editor-linux-x64/microsoft-office-online" "${pkgdir}/usr/bin/lospec-pixel-editor"
ln -sf "/opt/lospec-pixel-editor-linux-x64/resources/app/icon.png" "${pkgdir}/usr/share/pixmaps/lospec-pixel-editor.png"
chmod 777 "${pkgdir}/opt/lospec-pixel-editor-linux-x64/resources/app/nativefier.json"
}
|