blob: 0143bbbf1f431af452e925976882a631d5b77a1e (
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
|
# Contributor: Asuka Minato <asukaminato at nyan dot eu dot org>
# Maintainer: tee < teeaur at duck dot com >
pkgname=ecode-bin
pkgver=0.6.3
pkgrel=1
pkgdesc="Lightweight multi-platform code editor designed for modern hardware with a focus on responsiveness and performance."
url="https://github.com/SpartanJ/ecode"
license=('MIT')
arch=('x86_64' 'aarch64')
depends=(gcc-libs libglvnd sdl2 bash glibc libelf)
provides=(ecode)
source=(LICENSE::https://raw.githubusercontent.com/SpartanJ/ecode/main/LICENSE ecode.sh)
source_x86_64=("$url/releases/download/ecode-$pkgver/ecode-linux-$pkgver-x86_64.tar.gz")
sha256sums=('5fcb9a831d8efabb08cd20b7ca6000ca333115d60de477fa27909a14306188b0'
'40460ea0c5d9c523274b53cf41e642bf6ed36406c14f6ce95a33e42e68c71923')
sha256sums_x86_64=('9285e424c2d1bddd9ba9fc940b51dde1369297266a540302e38bd7055025faaa')
package() {
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
install -Dm755 ecode.sh "$pkgdir"/usr/bin/ecode
install -Dm644 "$srcdir"/ecode/ecode.desktop -t "$pkgdir"/usr/share/applications/
install -Dm644 "$srcdir"/ecode/ecode.png -t "$pkgdir"/usr/share/pixmaps/
rm "$srcdir"/ecode/ecode.desktop
rm "$srcdir"/ecode/ecode.png
# The libs and assets path are fixed, so I put them in /opt/
install -d "$pkgdir"/opt/$pkgname/
cp -av ecode/* "$pkgdir"/opt/$pkgname/
}
# vim: ts=2 sw=2 et:
|