blob: 9a1106fe59a264042383ca60bdc654b5c8e3b19d (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=ecode
pkgver=0.6.4
pkgrel=1
pkgdesc="Lightweight multi-platform code editor designed for modern hardware with a focus on responsiveness and performance."
arch=('x86_64' 'aarch64')
url="https://github.com/SpartanJ/ecode"
license=('MIT')
depends=('hicolor-icon-theme' 'libglvnd' 'sdl2')
makedepends=('git' 'premake')
provides=('libeepp.so')
source=("git+https://github.com/SpartanJ/eepp.git#tag=$pkgname-$pkgver"
'git+https://github.com/SpartanJ/efsw.git'
'git+https://github.com/SpartanJ/soil2.git')
sha256sums=('4461d4f471380559bedcabc8697c777e51823b92b5f5504132632bbb74868dc6'
'SKIP'
'SKIP')
prepare() {
cd eepp
git submodule init
git config submodule.src/thirdparty/efsw.url "$srcdir/efsw"
git config submodule.src/thirdparty/SOIL2.url "$srcdir/soil2"
git -c protocol.file.allow=always submodule update
}
build() {
cd eepp
premake5 gmake
make config=release_${CARCH} "$pkgname" -C make/linux
}
package() {
cd eepp
install -Dm755 "bin/$pkgname" -t "$pkgdir/opt/$pkgname/"
cp -r bin/assets "$pkgdir/opt/$pkgname/"
install -Dm755 libs/linux/${CARCH}/libeepp.so -t "$pkgdir/usr/lib/"
install -d "$pkgdir/usr/bin"
ln -s "/opt/$pkgname/$pkgname" "$pkgdir/usr/bin/"
install -d "$pkgdir/usr/share/pixmaps"
ln -s "/opt/$pkgname/assets/icon/ee.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -d "$pkgdir/usr/share/icons/hicolor/scalable/apps"
ln -s "/opt/$pkgname/assets/icon/$pkgname-icon.svg" \
"$pkgdir/usr/share/icons/hicolor/scalable/apps/$pkgname.svg"
install -Dm644 "projects/linux/$pkgname/$pkgname.desktop" -t \
"$pkgdir/usr/share/applications/"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|