summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorransome12021-04-19 12:10:21 +0200
committerransome12021-04-19 12:10:21 +0200
commit19b534950a2751f099330b3f90002a9160b8960a (patch)
treee2e7ad53743af9ebec69c3b9e06577f1a3f2be20 /PKGBUILD
parentda576cf8d52c18abde754b3202af322008d92c11 (diff)
downloadaur-19b534950a2751f099330b3f90002a9160b8960a.tar.gz
Permission issue fixed, all icons added, license updated, new checksums
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD21
1 files changed, 19 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7d5dcc75964..e54cec0bd99 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,24 +8,41 @@ url="https://github.com/ransome1/sleek/"
license=("MIT")
options=(!strip)
makedepends=("npm")
-depends=("electron")
+depends=("electron" "icu")
source=("${url}archive/refs/tags/v${pkgver}.zip" "sleek.desktop" "sleek.sh")
-sha512sums=('6639a0a7dfd238a695b268efa72b82c546f54196a8f895ebd2e1f26f16d602b3c2e10be1c732d9beac342e8a2f940295e02d5122c2bf2eb83dfb0f1773fb6a04'
+sha512sums=('7c567e489333f683b4d90064b12faa6281a6997794c27d999bd93aa8a45f9bca1419fa425e6cd90eb0e459a7efb03a126111692ecbe847fcc7478255c461c02f'
'60777dbda8202e5a265a274d126d30269fb8fba67641d22a83be19b353b4805cbed2a3c80bbc0e6ed7c0fe7ae21c3cde59b784d42d3ba941bb0fdf022c1375e8'
'13d651476d302af9d013c04c396c9b8f53114cf05adaf9cd80c0f452a6da8da45751e971cc2a6d2621d1480d04d6ba717aadf52982922ef9bfde867221b51845')
build() {
+ msg2 "Unzipping v${pkgver}.zip"
unzip -o "v${pkgver}.zip"
cd "$srcdir/$pkgname-${pkgver}"
+
+ msg2 "Installing node modules"
npm install
}
package() {
cd "$srcdir/$pkgname-${pkgver}"
+
+ msg2 "Building sleek with packaged Electron"
npm run pack
install -Dm644 "dist/linux-unpacked/resources/app.asar" "$pkgdir/usr/lib/$pkgname.asar"
install -d -Dm644 "${pkgdir}/usr/share"
+ chmod 755 "${pkgdir}/usr/share"
cp -r "dist/linux-unpacked/${pkgname}" "${pkgdir}/usr/share"
+
+ msg2 "Installing LICENSE"
+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+
+ msg2 "Installing startup script and desktop file"
install -Dm755 "../${pkgname}.sh" -t "$pkgdir/usr/bin/"
install -Dm644 "../${pkgname}.desktop" -t "$pkgdir/usr/share/applications/"
+
+ msg2 "Installing icons"
+ for size in 22 24 32 48 64 128 256 512; do
+ install -Dm644 "assets/icons/${size}x${size}.png" "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${pkgname}.png"
+ done
+ install -Dm644 "assets/icons/${pkgname}.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg"
}