blob: f779fad689d5e6091ac95cd17e617cf748eefc1a (
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
52
53
54
|
# Maintainer: Massimo Pavoni (damax) <aur at massimopavoni dot dev>
# Contributor: Konstantin Gizdov <arch at kge dot pw>
# Contributor: Baptiste Jonglez <baptiste--aur at jonglez dot org>
# Contributor: Morten Linderud <morten@linderud.pw>
# Contributor: Andreas Krinke <andreas dot krinke at gmx dot de>
pkgname=gephi
pkgver=0.11.4
pkgrel=1
pkgdesc="An interactive graph visualization and exploration platform"
arch=('x86_64')
url="https://gephi.org"
license=('CDDL-1.0 AND GPL-3.0-only')
_jdk=17
depends=("java-runtime=$_jdk" "java-environment=$_jdk" 'libxxf86vm' 'libnet' 'freetype2')
makedepends=('gendesk')
options=(!strip)
source=("https://github.com/gephi/gephi/releases/download/v$pkgver/gephi-$pkgver-linux-x64.tar.gz")
b2sums=('3d245188a2e324ed246faa4fc3aa2d1be736e8abc7533a4788ba2d5b7f6437251607a97fd57823ced8d86fae57359335224d516598c81ec90c889f6a61e33403')
prepare() {
gendesk -n --name "Gephi - The Open Graph Viz Platform" \
--pkgname "$pkgname" \
--pkgdesc "$pkgdesc" \
--categories "Graphics;Education;Science;Network;DataVisualization" \
--exec "gephi %F" \
--genericname "Network Visualization"
}
package() {
cd "$srcdir/gephi-$pkgver"
install -d "$pkgdir/usr/share/gephi"
cp -r * "$pkgdir/usr/share/gephi"
chmod 644 "$pkgdir/usr/share/gephi/etc/gephi.conf"
find "$pkgdir" -type f \( -iname '*.dll' -o -iname '*.exe' \
-o -name '.lastModified' \) -delete
install -d "$pkgdir/usr/bin"
cat >"$pkgdir/usr/bin/gephi" <<EOF
#!/bin/sh
export GEPHI_JDK=/usr/lib/jvm/java-${_jdk}-openjdk
exec /usr/share/gephi/bin/gephi "\$@"
EOF
chmod 755 "$pkgdir/usr/bin/gephi"
install -Dm644 "$srcdir/$pkgname.desktop" \
"$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$srcdir/$pkgname-$pkgver/flathub/gephi.png" \
"$pkgdir/usr/share/icons/hicolor/512x512/apps/gephi.png"
}
|