blob: 95d2ab9fd4322c377cd43ff044cc64d6d82cc13f (
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: Maxr1998 <aur@maxr1998.de>
pkgname=finamp
pkgver=0.9.12_beta
pkgrel=1
pkgdesc="An open source Jellyfin music player"
arch=("x86_64" "aarch64")
url="https://github.com/jmshrv/finamp"
license=('MPL-2.0')
depends=('gtk3' 'pango')
makedepends=('git' 'flutter-tool' 'flutter-target-linux' 'clang' 'cmake' 'ninja' 'xz')
source=("$pkgname-$pkgver.tar.gz::$url/archive/${pkgver//_/-}.tar.gz")
b2sums=('eeaf5dbc612dab13d00ba184ae6de83ca60bd14027f544ffd1578ea456cec541da21de8a13cc0c332bb2e06dc297e86b58fc17f1733b931f6e0b5e30bede0503')
prepare() {
cd "$pkgname-${pkgver//_/-}"
flutter --suppress-analytics pub get
}
build() {
cd "$pkgname-${pkgver//_/-}"
flutter --suppress-analytics build linux --release --no-pub
}
package() {
cd "$pkgname-${pkgver//_/-}/build/linux/x64/release/bundle"
install -dm755 "$pkgdir/opt/$pkgname"
cp -rdp --no-preserve=ownership . "$pkgdir/opt/$pkgname/"
cd "$srcdir/$pkgname-${pkgver//_/-}"
# Install desktop entry
install -dm755 "$pkgdir/usr/share/applications/"
m4 -D__INSTALL_PATH__="/opt/$pkgname" "assets/finamp.desktop.m4" > "$pkgdir/usr/share/applications/$pkgname.desktop"
# Install icons
install -dm755 "$pkgdir/usr/share/icons/hicolor"
cp -rdp --no-preserve=ownership "assets/icon/linux/." "$pkgdir/usr/share/icons/hicolor"
install -Dm644 "README.md" -t "$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|