summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4816b7589244b507a7decc1cbd6ac27b24f052fb (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
  # Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
  # Contributor:  solaraquarion <shlomochoina@gmial.com>
  # Contributor:  derbetakevin <derbetakevin@outlook.de>
pkgname=extraterm-bin
_pkgname=ExtratermQt
pkgver=0.81.1
pkgrel=1
pkgdesc="The swiss army chainsaw of terminal emulators.(Prebuilt versrion)"
arch=('x86_64')
url="https://extraterm.org/"
_ghurl="https://github.com/sedwards2009/extraterm"
license=('MIT')
conflicts=("${pkgname%-bin}")
provides=("${pkgname%-bin}=${pkgver}")
depends=(
    'libdrm'
    'krb5'
    'xcb-util-cursor'
    'nodejs'
    'at-spi2-core'
    'gtk3'
    'xcb-util-keysyms'
    'qt6-base'
    'xcb-util-wm'
    'libxkbcommon-x11'
)
options=('!strip')
source=("${pkgname%-bin}-${pkgver}.AppImage::${_ghurl}/releases/download/v${pkgver}/${_pkgname}-${pkgver}.glibc2.34-${CARCH}.AppImage")
sha256sums=('4099969f7746287e09c2d5def5e407d78eaf652bb661a20c52215a4e5a938f07')
prepare() {
    if [ ! -x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" ];then
        chmod +x "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage"
    fi
    "${srcdir}/${pkgname%-bin}-${pkgver}.AppImage" --appimage-extract > /dev/null
    sed -i -e "
      s/Exec=${pkgname%-bin}qt/Exec=${pkgname%-bin}/g
      s/Icon=extratermqt/Icon=${pkgname%-bin}/g
    " "${srcdir}/squashfs-root/${pkgname%-bin}.desktop"
}
package() {
    install -Dm755 -d "${pkgdir}/usr/"{bin,lib/"${pkgname%-bin}"}
    cp -Pr --no-preserve=ownership "${srcdir}/squashfs-root/opt/${pkgname%-bin}qt/"* "${pkgdir}/usr/lib/${pkgname%-bin}"
    ln -sf "/usr/lib/${pkgname%-bin}/${pkgname%-bin}qt" "${pkgdir}/usr/bin/${pkgname%-bin}"
    install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}qt.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
    install -Dm644 "${srcdir}/squashfs-root/${pkgname%-bin}.desktop" "${pkgdir}/usr/share/applications/${pkgname%-bin}.desktop"
    install -Dm644 "${srcdir}/squashfs-root/opt/${pkgname%-bin}qt/LICENSE.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}