summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 79934006bd1a104ba464d485ca35a4e39e0d8c13 (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
# Maintainer: Johannes Graƫn <johannes SPIRALGALAXY selfnet FULLSTOP de>

pkgname=jabref-latest
pkgver=20191014
pkgrel=1
pkgdesc="GUI frontend for BibTeX, written in Java; latest master version from git"
arch=('x86_64')
url="https://www.jabref.org/"
license=('MIT')
provides=('jabref')
conflicts=('jabref')
depends=('glibc'
         'freetype2'
	 'libxtst'
	 'libnet'
	 'libxrender'
	 'alsa-lib'
         'python3')
optdepends=('gsettings-desktop-schemas: For web search support')
source=(https://builds.jabref.org/master/JabRef-portable_linux.tar.gz
        https://raw.githubusercontent.com/JabRef/jabref/master/LICENSE.md
        jabref.sh
        JabRef.desktop
        JabRef.svg)
sha256sums=('SKIP'
            'dad0a06f54ce346cc066c6e27e746974e850b77f04381f3c363021ee927e444d'
            '9311fb9ed26f65be4040b6add5f195ffff22c857d5f85bd471375633e44bfe04'
            '183a112c959a3a1b8c1db3522aa52cd20487c7849985318cff1dc1b502718f26'
            '84408ddc8c6e41e4367f3b6cd171909fb1cf7ac808495f3a8033b64a2ff4c40b')


pkgver() {
  curl --silent --head head https://builds.jabref.org/master/JabRef-portable_linux.tar.gz \
    | grep "Last-Modified" | cut -d' ' -f2- | date -f - +%Y%m%d
}

package() {
  cd ${srcdir}
  install -Dm755 JabRef/bin/JabRef ${pkgdir}/opt/JabRef/bin/JabRef
  find JabRef/lib -type f -exec install -Dm644 "{}" "${pkgdir}/opt/{}" \;
  install -Dm755 jabref.sh ${pkgdir}/usr/bin/jabref
  install -Dm755 JabRef.svg ${pkgdir}/usr/share/pixmaps/JabRef.svg
  install -Dm644 JabRef.desktop ${pkgdir}/usr/share/applications/JabRef.desktop
  install -Dm644 LICENSE.md ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md
}