blob: 76f8ffb1078bab81f439cfef51dfd704ea4331d9 (
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
|
# Maintainer: Dee.H.Y <dongfengweixiao at hotmail dot com>
pkgname=dahliaos-terminal-git
pkgver=r50.b0c7a4e
pkgrel=2
pkgdesc="Terminal emulator for dahliaOS."
arch=('x86_64')
url="https://github.com/dahliaOS/terminal"
license=('Apache')
depends=('gtk3')
makedepends=('git' 'cmake' 'ninja' 'imagemagick' 'clang>=11.0.0')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/dahliaOS/terminal.git'
"${pkgname%-git}.desktop"
"https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.10.5-stable.tar.xz")
sha256sums=('SKIP'
'25840e6169afb96e792b08b77e9ea88c480a24142330b482169e0572c9a55c2b'
'86643cbfe8acf766a226a6cd4625bb8301c2601ea9bb825448318c8669b72a13')
pkgver() {
cd "$srcdir/terminal"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/terminal"
$srcdir/flutter/bin/flutter build linux
}
package() {
cd "$srcdir/terminal/build/linux/x64/release/bundle"
install -d "$pkgdir/opt/${pkgname%-git}"
cp -r * "$pkgdir/opt/${pkgname%-git}"
install -d "$pkgdir/usr/bin"
ln -s "/opt/${pkgname%-git}/terminal" "$pkgdir/usr/bin/${pkgname%-git}"
# install -Dm644 "$srcdir/terminal/dahliaOS/clock.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 "$srcdir/${pkgname%-git}.desktop" -t "$pkgdir/usr/share/applications"
}
|