summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4d17f1398f941c83bcbbdc64e8a0f51d7b07ae36 (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.0p3hb
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=('016404d704a233daeb36c2d1acf3c589f15584a0f4ebb2ce77a2e65bc7c9abf30343cbefbe076d1a644630dd4ff936b9583ac1a6510754d10f5a36a78dc11f2d')

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} -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 755 "$pkgdir"/opt/${pkgname%-desktop-bin}/standalone-run/usr/bin/${pkgname%-desktop-bin}-session             -t "$pkgdir"/usr/bin/
  install -vDm 755 "$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}
}