blob: 4ff679b6a5d09e291f05b1399b97d873de0b686c (
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
|
# Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: solaraquarion <shlomochoina@gmial.com>
pkgname=extraterm
pkgver=0.38.1
pkgrel=1
pkgdesc="The swiss army chainsaw of terminal emulators."
arch=("x86_64")
url="https://github.com/sedwards2009/extraterm"
license=("MIT")
depends=("nodejs")
source=("$url/releases/download/v$pkgver/extraterm-$pkgver-linux-x64.zip")
sha256sums=('92cf5bd2dd63a8f5bb2400bafd07a23154339d9adea0322b43d99252ccc42b1d')
prepare(){
rm -rf "$srcdir/$pkgname-$pkgver"
mv "$srcdir/$pkgname-$pkgver-linux-x64" "$srcdir/$pkgname-$pkgver"
}
package() {
cd $srcdir
msg2 " -> Installing program..."
install -d $pkgdir/opt
install -d $pkgdir/opt/$pkgname
install -d $pkgdir/usr/bin
cp -r "$srcdir/$pkgname-$pkgver"/* "$pkgdir/opt/$pkgname"
install -Dm755 /dev/stdin "$pkgdir"/usr/bin/$pkgname <<END
#!/usr/bin/bash
/opt/extraterm/extraterm
END
msg2 " -> Installing icons..."
local _icon_dir="usr/share/icons/hicolor"
install -Dm644 $pkgdir/opt/$pkgname/resources/app/extraterm/resources/logo/extraterm_main_logo.svg $pkgdir/$_icon_dir/scalable/apps/$pkgname.svg
install -Dm644 $pkgdir/opt/$pkgname/resources/app/extraterm/resources/logo/extraterm_small_logo_256x256.png $pkgdir/$_icon_dir/256x256/apps/$pkgname.png
msg2 " -> Installing .desktop file..."
install -Dm644 $pkgdir/opt/$pkgname/resources/app/extraterm/resources/extraterm.desktop $pkgdir/usr/share/applications/extraterm.desktop
msg2 " -> Installing license..."
install -Dm755 $pkgdir/opt/$pkgname/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/copyright
}
|