summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f767673b50f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Maarten Bezemer <maarten.bezemer@gmail.com>
+
+pkgname=cubbit
+pkgdesc='Cubbit desktop-sync application'
+pkgver=7.1.2
+pkgrel=1
+arch=('x86_64')
+url='https://www.cubit.io/'
+license=('custom')
+depends=('gtk2' 'hicolor-icon-theme' 'libxss' 'libxtst')
+options=('!strip')
+source=("https://get.cubbit.io/desktop/linux/Cubbit-${pkgver}.AppImage")
+sha256sums=('fd1007d7bec9bcbf72b6f8c5ea764344ecd4105ac9e09375b1828ccb3c838e46')
+
+prepare() {
+ chmod +x Cubbit-${pkgver}.AppImage
+ ./Cubbit-${pkgver}.AppImage --appimage-extract
+
+ sed -e 's#Exec=AppRun#Exec=@cubbitdesktop#g' squashfs-root/@cubbitdesktop.desktop > @cubbitdesktop.desktop
+ sed -e '/^THIS=/i APPDIR=/usr/share/cubbit' squashfs-root/AppRun > AppRun
+}
+
+package() {
+ install -dm755 "$pkgdir"/usr/share/
+
+ for i in 16x16 24x24 32x32 48x48 64x64 128x128 256x256 400x400; do
+ install -Dm644 "$srcdir"/squashfs-root/usr/share/icons/hicolor/${i}/apps/@cubbitdesktop.png \
+ "$pkgdir"/usr/share/icons/hicolor/$i/apps/@cubbitdesktop.png
+ done
+
+ install -Dm755 "$srcdir"/squashfs-root/@cubbitdesktop -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/icudtl.dat -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/chrome* -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/resources.pak -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/lib* -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/snapshot_blob.bin -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/v8_context_snapshot.bin -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/vk_swiftshader_icd.json -t "$pkgdir"/usr/share/cubbit/
+ install -Dm644 "$srcdir"/squashfs-root/locales/* -t "$pkgdir"/usr/share/cubbit/locales/
+ install -Dm644 "$srcdir"/squashfs-root/resources/* -t "$pkgdir"/usr/share/cubbit/resources
+ install -Dm644 "$srcdir"/squashfs-root/swiftshader/* -t "$pkgdir"/usr/share/cubbit/swiftshader/
+
+ install -d "$pkgdir"/usr/bin
+ install -Dm755 "$srcdir"/AppRun -T "$pkgdir"/usr/bin/@cubbitdesktop
+
+ install -Dm644 "$srcdir"/squashfs-root/license.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+ install -Dm644 "$srcdir"/squashfs-root/LICENSE.electron.txt -t "$pkgdir"/usr/share/licenses/$pkgname
+ install -Dm644 "$srcdir"/squashfs-root/LICENSES.chromium.html -t "$pkgdir"/usr/share/licenses/$pkgname
+
+ install -Dm644 "$srcdir"/@cubbitdesktop.desktop -t "$pkgdir"/usr/share/applications
+}