blob: 74801f4b14fefdf862cf717403174309d0a42aa9 (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: TechVio <68242352+techvio1@users.noreply.github.com>
# Contributor: chn <g897331845@gmail.com>
# Contributor: Hunter Wittenborn <git@hunterwittenborn.me>
# Contributor: Alfin Bakhtiar Ilhami <alfin at nuclea dot id>
# Contributor: Jan-Tarek Butt <tarek at ring0 dot de>
pkgname=bootstrap-studio
pkgver=6.1.3
pkgrel=1
pkgdesc="Bootstrap Studio is a powerful tool which web developers and designers use to create layouts and fully functional websites using the Bootstrap framework."
arch=("x86_64")
license=("custom")
url="https://bootstrapstudio.io/"
source=("https://bootstrapstudio.io/releases/desktop/${pkgver}/Bootstrap%20Studio.AppImage"
"bstudio.desktop")
sha256sums=('88e49fc0340401dfb0f428c85d8d2e8630e82141dbae1e1a9858251cc001b1a6'
'e1c1b0d4b24658fc0ead611cb002dcde431e30256cb8fd0dffb3cfc76f24db84')
prepare() {
# Extract AppImage
echo "Extracting AppImage..."
mv "Bootstrap%20Studio.AppImage" "Bootstrap Studio.AppImage"
chmod +x "Bootstrap Studio.AppImage"
./"Bootstrap Studio.AppImage" --appimage-extract &> /dev/null
}
package() {
# Copy package files
echo "Copying package files..."
mkdir -p "${pkgdir}/opt/bootstrap-studio"
cp -Lr "${srcdir}/squashfs-root" "${pkgdir}/opt/bootstrap-studio"
# Set perms
chmod a+rx "${pkgdir}/opt/bootstrap-studio/" -R
# Add package to /usr/bin/
mkdir -p "${pkgdir}/usr/bin"
printf '#!/bin/bash\n\n/opt/bootstrap-studio/squashfs-root/AppRun' | tee "${pkgdir}/usr/bin/bootstrap-studio" &> /dev/null
chmod +x "${pkgdir}/usr/bin/bootstrap-studio"
# Copy .desktop file
mkdir -p "${pkgdir}/usr/share/applications"
cp -Lr "${srcdir}/bstudio.desktop" "${pkgdir}/usr/share/applications/"
# Copy icons
mkdir -p "${pkgdir}/usr/share/icons/hicolor/"{128x128,192x192,256x256,512x512}"/apps/"
for i in 128x128 192x192 256x256 512x512; do
cp -Lr "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/bstudio.png" "${pkgdir}/usr/share/icons/hicolor/${i}/apps/"
done
}
|