blob: fcd13c79a2f4b9ab4295fc4d485fcc2503ed3e89 (
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
49
50
51
|
# Maintainer: Lauri Niskanen <ape@ape3000.com>
_pkgname=firefly-luciferin
pkgname=${_pkgname}-git
pkgver=2.19.3r3.gb96c17c3
pkgrel=1
pkgdesc="Screen capture software for ambient and bias lighting"
arch=('any')
url="https://github.com/sblantipodi/firefly_luciferin"
license=('GPL-3.0-or-later')
depends=('jdk-openjdk>=23' 'jdk-openjdk<24' 'hicolor-icon-theme')
makedepends=('git' 'maven')
optdepends=(
'xdg-desktop-portal-wlr: For PipeWire XDG screen capture support (Wayland)'
'gst-plugin-pipewire: For PipeWire XDG screen capture support (Wayland)'
'gst-plugins-good: For Ximagesrc screen capture support (X11)'
'libappindicator-gtk3: For tray icon support (either one)'
'libayatana-appindicator: For tray icon support (either one)'
)
provides=('firefly-luciferin')
conflicts=('firefly-luciferin')
source=("git+$url.git" "firefly-luciferin")
sha256sums=('SKIP'
'fb1159e5058fe1e02acd6500418668525ca107881a48bb1099fadcb0d73a5cdd')
pkgver() {
cd "$srcdir/firefly_luciferin"
git describe --long --tags | sed 's/^v//;s/-/r/;s/-/./'
}
build() {
cd "$srcdir/firefly_luciferin"
JAVA_HOME=/usr/lib/jvm/java-23-openjdk mvn package
}
package() {
cd "$srcdir/firefly_luciferin"
mkdir -p "$pkgdir/usr/share/${_pkgname}/"
install -Dm755 $srcdir/"${_pkgname}" "$pkgdir/usr/bin/${_pkgname}"
install -Dm644 target/fireflyluciferin-*.jar "$pkgdir/usr/share/${_pkgname}/"
install -Dm644 "target/FireflyLuciferin-jar-with-dependencies.jar" "$pkgdir/usr/share/${_pkgname}/FireflyLuciferin-jar-with-dependencies.jar"
sed -i 's/^Exec=FireflyLuciferin$/Exec=firefly-luciferin/' "target/classes/build_assets/org.dpsoftware.FireflyLuciferin.desktop"
install -Dm644 "target/classes/build_assets/org.dpsoftware.FireflyLuciferin.desktop" "$pkgdir/usr/share/applications/org.dpsoftware.FireflyLuciferin.desktop"
install -Dm644 "target/classes/build_assets/org.dpsoftware.FireflyLuciferin.appdata.xml" "$pkgdir/usr/share/metainfo/org.dpsoftware.FireflyLuciferin.appdata.xml"
install -Dm644 "target/classes/build_assets/org.dpsoftware.FireflyLuciferin.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/org.dpsoftware.FireflyLuciferin.svg"
mkdir -p "$pkgdir/usr/share/${_pkgname}/classes/org/dpsoftware/gui"
cp -r "target/classes/org/dpsoftware/gui/img" "$pkgdir/usr/share/${_pkgname}/classes/org/dpsoftware/gui/"
}
|