blob: 5731a6a2c3d9b31878b63e5b20d1965e60c72431 (
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
|
# Maintainer: solaraquarion <shlomochoina@gmial.com>
pkgname=extraterm-git
_pkgname=extraterm
_pkgver=0.58.0
pkgver=0.57.1.r38.g4b18018e
pkgrel=1
conflicts=('extraterm-bin')
pkgdesc="The swiss army chainsaw of terminal emulators."
arch=("i686" "x86_64")
url="https://github.com/sedwards2009/extraterm"
license=("MIT")
#depends=("nodejs")
makedepends=('openssh' 'python2' 'git' 'npm' 'yarn' 'nodejs' 'typescript')
source=(git+"$url"
"extraterm.desktop")
sha512sums=('SKIP'
'070211fce7eb59eeac0bd3a130062934b83119c6704b433ab75abbd2d6f9306e870c02db8079e738952a421e1728b8b313dce96feca43cd497d92df277349644')
pkgver() {
cd "$_pkgname"
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
yarn install
yarn run package-linux-zip-only
}
package() {
cd "$srcdir/$_pkgname"
install -d "$pkgdir"/usr/lib
install -d "$pkgdir/usr/lib/$_pkgname"
install -d "$pkgdir"/usr/bin
cp -r "$srcdir/$_pkgname"/build_tmp/extraterm-"$_pkgver"-linux-x64/* "$pkgdir/usr/lib/$_pkgname"
install -Dm755 /dev/stdin "$pkgdir"/usr/bin/"$_pkgname" <<END
#!/usr/bin/bash
/usr/lib/extraterm/extraterm
END
local _icon_dir="usr/share/icons/hicolor"
install -Dm644 "$pkgdir/usr/lib/$_pkgname"/resources/app/extraterm/resources/logo/extraterm_main_logo.svg "$pkgdir/$_icon_dir/scalable/apps/$_pkgname".svg
install -Dm644 "$pkgdir/usr/lib/$_pkgname"/resources/app/extraterm/resources/logo/extraterm_small_logo_256x256.png "$pkgdir/$_icon_dir/256x256/apps/$_pkgname".png
install -Dm644 "$srcdir"/extraterm.desktop "$pkgdir"/usr/share/applications/extraterm.desktop
install -Dm755 "$pkgdir"/usr/lib/"$_pkgname"/LICENSE.txt "$pkgdir"/usr/share/licenses/"$_pkgname"/copyright
}
|