blob: dd481c8900c01e8175708f02e47fe5dd623de9d7 (
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: FabioLolix
# Maintainer: squitch
pkgname=tess-git
pkgver=0.5.4.r0.g5f299fe
pkgrel=1
epoch=1
pkgdesc="Hackable, simple, rapid and beautiful terminal for the new era"
arch=(x86_64)
url="https://github.com/SquitchYT/Tess"
license=(MPL2)
depends=(gtk3 nss)
makedepends=(git npm cmake nodejs-lts-gallium)
source=("git+https://github.com/SquitchYT/Tess.git")
sha256sums=('SKIP')
pkgver() {
cd "Tess"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
cd "Tess"
install -D Tess.desktop "${pkgdir}/usr/share/applications/Tess.desktop"
install -D tesshere.desktop "${pkgdir}/usr/share/kservices5/ServiceMenus/tesshere.desktop"
install -D appintess.desktop "${pkgdir}/usr/share/kservices5/ServiceMenus/appintess.desktop"
install -D build/icon.png "${pkgdir}/usr/share/pixmaps/tess.png"
mkdir -p "${pkgdir}/usr/share/man"
cp -r -f ./man/* "${pkgdir}/usr/share/man/"
if type "$kbuildsycoca5" > /dev/null; then
kbuildsycoca5
fi
cd cli
cmake . -B build
make -C build
install -Dm755 build/tess-cli -t "${pkgdir}/usr/bin/"
npm install
npm run build
mkdir -p "${pkgdir}/usr/lib/tess"
cd ../dist/linux-unpacked
cp -r -f * "${pkgdir}/usr/lib/tess/"
ln -s "/usr/lib/tess/tess" "${pkgdir}/usr/bin/tess"
}
|