blob: 41594b375e783407b401f11f2b22674e8fa17973 (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Maintainer: Nebulosa <nebulosa2007-at-yandex-dot-ru>
pkgname=orbitiny-desktop-bin
pkgver=1.0p3b
pkgrel=1
pkgdesc="New, 100% portable, innovative and traditional but modern looking desktop environment for Linux"
arch=(x86_64)
url="https://sourceforge.net/projects/${pkgname%-bin}"
license=(GPL-2.0-only)
depends=(
acl
at-spi2-core
cairo
dbus
dconf
file
fontconfig
freetype2
gcc-libs
gdk-pixbuf2
glib2
glibc
gtk3
krb5
libcap
libglvnd
libsigc++
libstatgrab
libx11
libxcb
libxcomposite
libxdamage
libxext
libxkbcommon
libxkbcommon-x11
libxrender
pango
sh
qt5-base
qt5-declarative
qt5-svg
qt5-wayland
qt5-x11extras
wayland
xcb-util
xcb-util-image
xcb-util-keysyms
xcb-util-renderutil
xcb-util-wm
xfconf
xfwm4
xorg-xinit
xorg-server
xorg-xprop
xsettingsd
zlib
)
provides=(${pkgname%-bin})
conflicts=(${pkgname%-bin})
options=(!debug)
source=("${pkgname%-desktop-bin}-$pkgver.tar.gz::$url/files/${pkgname/-desktop/}-release.tar.gz/download")
noextract=("${pkgname%-desktop-bin}-$pkgver.tar.gz")
b2sums=('302cd16a27599df119156241b3b472ed8062409e3f0dbe3eb2cfe6c5e8a3af83a1d5cc5ab82ad4f903f6549b0dda39007718918b6c0111621c728718e5f6e84e')
package() {
install -vd "$pkgdir"/opt/${pkgname%-desktop-bin}
tar -xzf ${pkgname%-desktop-bin}-$pkgver.tar.gz \
--no-same-owner \
--strip-components=1 \
--exclude=".portable_mode" \
--exclude="New_Download_Link" \
-C "$pkgdir"/opt/${pkgname%-desktop-bin}
# Fix permissions
chmod -R go-w "$pkgdir"
chmod -R go+r "$pkgdir"
find "$pkgdir"/opt/${pkgname%-desktop-bin}/usr/bin/.config -type d -exec chmod go+x {} \;
# Running in non-portable mode - Method 1
sed -i '/export ORBITINY_GLOBAL_SHARED_DIR=$DIR\/shared/d' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-bin}
sed -i '/export ORBITINY_GLOBAL_CONFIG_DIR=$DIR\/usr\/bin\/.config/d' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-bin}
sed -i '/export ORBITINY_GLOBAL_SHARED_DIR=$DIR\/shared/d' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-desktop-bin}-panel
sed -i '/export ORBITINY_GLOBAL_CONFIG_DIR=$DIR\/usr\/bin\/.config/d' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-desktop-bin}-panel
sed -i 's|^# export|export|g' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-bin}
sed -i 's|^# export|export|g' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-desktop-bin}-panel
# Running standalone
install -vDm 777 "$pkgdir"/opt/${pkgname%-desktop-bin}/standalone-run/usr/bin/${pkgname%-desktop-bin}-session -t "$pkgdir"/usr/bin/
install -vDm 777 "$pkgdir"/opt/${pkgname%-desktop-bin}/standalone-run/usr/share/xsessions/${pkgname%-desktop-bin}.desktop -t "$pkgdir"/usr/share/xsessions
sed -i 's|LIGHTBAR_PORTABLE_MODE=0|STANDALONE_MODE=1|' "$pkgdir"/opt/${pkgname%-desktop-bin}/${pkgname%-bin}
}
|