blob: 6d4d339e104db443d38a8a4a195a310136836710 (
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
|
# Maintainer: FabioLolix
# Maintainer: squitch
pkgname=tess-git
pkgver=0.6.3.r0.gfb66886
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 "build/ressources/desktop/tess.desktop" "${pkgdir}/usr/share/applications/Tess.desktop"
install -D "build/ressources/desktop/open-tess-here.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/tesshere.desktop"
install -D "build/ressources/desktop/open-app-in-tess.desktop" "${pkgdir}/usr/share/kservices5/ServiceMenus/appintess.desktop"
install -D "build/ressources/icon/icon.png" "${pkgdir}/usr/share/pixmaps/tess.png"
mkdir -p "${pkgdir}/usr/share/man"
cp -r -f build/ressources/man/ "${pkgdir}/usr/share/man/"
if type "$kbuildsycoca5" > /dev/null; then
kbuildsycoca5
fi
cd cli
cmake . -B build
make -C build
strip build/tess-cli
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"
}
|