blob: e14b0acaeb21e0f74883b193b31e2a8ae66f1395 (
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
|
# Maintainer: Mahor1221 <mahor1221 at pm dot me>
# Maintainer: Padya1201 <padya1201 at gmail dot com>
pkgname=tachidesk-sorayomi
__pkgname="$pkgname"
__PkgName="$(echo "$__pkgname" | sed -e "s/\b./\u\0/g")"
__binname="$(echo "$__pkgname" | tr - _)"
pkgver=0.4.6
pkgrel=1
pkgdesc='A free and open source manga reader to read manga from a Tachidesk-Server instance'
arch=('x86_64')
url="https://github.com/Suwayomi/$__PkgName"
license=('MPL2')
depends=('zenity' 'xdg-user-dirs')
optdepends=('tachidesk-server')
makedepends=('flutter-beta' 'cmake' 'clang' 'ninja')
source=("$url/archive/refs/tags/$pkgver.tar.gz")
sha256sums=('d5e72895138f5ddd206132d587d16bbf0f21fc21ac798781db492f1ebca6cf7b')
build() {
cd "$__PkgName-$pkgver/"
flutter config --enable-linux-desktop
flutter pub get
flutter build linux --release
}
package() {
cd "$__PkgName-$pkgver/"
install -dm755 "$pkgdir/opt/$__pkgname/"
cp -a "build/linux/x64/release/bundle/" -T "$pkgdir/opt/$__pkgname/"
install -Dm644 "scripts/$__pkgname.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm644 "assets/icons/launcher/sorayomi_icon.png" "$pkgdir/usr/share/pixmaps/$__pkgname.png"
install -dm755 "$pkgdir/usr/bin/"
ln -sr "$pkgdir/opt/$__pkgname/$__binname" "$pkgdir/usr/bin/$__pkgname"
}
|