blob: 1d29abb870438a3dde4c07dcd0fb44f1943445b8 (
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
|
# Maintainer: Dee.H.Y <dongfengweixiao at hotmail dot com>
pkgname=dahliaos-files-git
pkgver=r101.4166d0a
pkgrel=2
pkgdesc="File manager application for dahliaOS."
arch=('x86_64')
url="https://github.com/dahliaOS/files"
license=('Apache')
depends=('gtk3')
makedepends=('git' 'flutter>=3.10.0' 'cmake' 'ninja' 'imagemagick' 'clang>=11.0.0')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/dahliaOS/files.git'
"${pkgname%-git}.desktop")
sha256sums=('SKIP'
'41a11b723315c19014d21c4b177c513251d03ea773783ab674296035fb52d13c')
pkgver() {
cd "$srcdir/files"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/files"
flutter config --enable-linux-desktop
flutter build linux
}
package() {
cd "$srcdir/files/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}/files" "$pkgdir/usr/bin/${pkgname%-git}"
install -Dm644 "$srcdir/files/dahliaOS/files.png" "$pkgdir/usr/share/pixmaps/${pkgname%-git}.png"
install -Dm644 "$srcdir/${pkgname%-git}.desktop" -t "$pkgdir/usr/share/applications"
}
|