summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6fc4f9b551f38ca3e1057136a9ad419c019dbf95 (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: Askhat Bakarov < >

# on the base of jabref-latest

pkgname=jabref-bin
_pkgname=jabref
pkgver=5.13
pkgrel=1
pkgdesc="GUI frontend for BibTeX, written in Java; bin version which bundles the Java runtime"
arch=('x86_64')
url="https://www.jabref.org/"
license=('MIT')
provides=('jabref')
conflicts=('jabref')
depends=('freetype2'
         'libxtst'
         'libnet'
         'libxrender'
         'alsa-lib'
         'python3')
optdepends=('gsettings-desktop-schemas: For web search support')
source=(https://github.com/JabRef/jabref/releases/download/v${pkgver}/JabRef-${pkgver}-portable_linux.tar.gz
        https://raw.githubusercontent.com/JabRef/jabref/main/LICENSE
        jabref.sh
        JabRef.desktop
        JabRef.svg)
sha256sums=('a69da5fd09f1eab14fb3bf922ccebf5b6c1b157145dd7489fd8adedee6cea2aa'
            '68664af2717c2be847dcc219ff34e9a86721e5441f60a6b11472abb50c1fdeff'
            '857807c9240181f5d7e783898e94e523beaba8b6b55617931141cbffba41c70d'
            '81a9ce53092525d1ba964435a0558654441a85e818581453a50df1045017c131'
            '84408ddc8c6e41e4367f3b6cd171909fb1cf7ac808495f3a8033b64a2ff4c40b')


package() {
  cd ${srcdir}

  mv JabRef jabref

  install -Dm755 jabref/bin/JabRef ${pkgdir}/opt/jabref/bin/JabRef
  find jabref/lib -type f -exec install -Dm644 "{}" "${pkgdir}/opt/{}" \;
  chmod +x ${pkgdir}/opt/jabref/lib/runtime/bin/*
  chmod +x ${pkgdir}/opt/jabref/lib/runtime/lib/jexec
  chmod +x ${pkgdir}/opt/jabref/lib/runtime/lib/jspawnhelper
  chmod +x ${pkgdir}/opt/jabref/lib/jabrefHost.py

  install -Dm755 jabref.sh ${pkgdir}/usr/bin/jabref
  install -Dm644 JabRef.svg ${pkgdir}/usr/share/pixmaps/JabRef.svg
  install -Dm644 JabRef.desktop ${pkgdir}/usr/share/applications/JabRef.desktop
  install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE
}