summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Graën2019-04-29 02:06:54 +0200
committerJohannes Graën2019-04-29 02:06:54 +0200
commita0098d96003a4ec092075c304209cd22608c660c (patch)
tree2c3606521cd921192b8cbc9383cab560f7a41453
downloadaur-a0098d96003a4ec092075c304209cd22608c660c.tar.gz
init
-rw-r--r--.SRCINFO63
-rw-r--r--PKGBUILD87
-rw-r--r--jabref.desktop12
-rw-r--r--jabref.sh3
4 files changed, 165 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..eb822ed5074
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,63 @@
+pkgbase = jabref-latest
+ pkgdesc = GUI frontend for BibTeX, written in Java; latest master version from git
+ pkgver = 20190426
+ pkgrel = 1
+ url = https://www.jabref.org/
+ arch = any
+ license = MIT
+ depends = archlinux-java-run>=4
+ depends = java-openjfx>=8
+ depends = java-openjfx<9
+ depends = sh
+ depends = atk
+ depends = bzip2
+ depends = cairo
+ depends = expat
+ depends = fontconfig
+ depends = freetype2
+ depends = fribidi
+ depends = gcc-libs
+ depends = gdk-pixbuf2
+ depends = glib2
+ depends = glibc
+ depends = graphite
+ depends = gtk2
+ depends = harfbuzz
+ depends = libdatrie
+ depends = libffi
+ depends = libpng
+ depends = libthai
+ depends = libutil-linux
+ depends = libx11
+ depends = libxau
+ depends = libxcb
+ depends = libxcomposite
+ depends = libxcursor
+ depends = libxdamage
+ depends = libxdmcp
+ depends = libxext
+ depends = libxfixes
+ depends = libxi
+ depends = libxinerama
+ depends = libxrandr
+ depends = libxrender
+ depends = libxtst
+ depends = pango
+ depends = pcre
+ depends = pixman
+ depends = zlib
+ optdepends = gsettings-desktop-schemas: For web search support
+ provides = jabref
+ conflicts = jabref
+ noextract = JabRef--master--latest.jar
+ source = https://builds.jabref.org/master/JabRef--master--latest.jar
+ source = https://raw.githubusercontent.com/JabRef/jabref/master/LICENSE.md
+ source = jabref.sh
+ source = jabref.desktop
+ sha256sums = 75db47c39bb667b7360c6a31a652803ed38b39245b5846da20985e48555eef5a
+ sha256sums = 5c1fd05ff42cfe35f7f1722fa349546bab877f00ac0d4756def08ae098615653
+ sha256sums = b51970cc3b70da835f7ebc971d03570417dba7dae837f28f2cce213ecb844768
+ sha256sums = a26845ba60ef2588c52d7d18259a977b146c777f935573bacdffcdcefa2b41b5
+
+pkgname = jabref-latest
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77c4485fbec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,87 @@
+# Maintainer: Johannes Graën <johannes SPIRALGALAXY selfnet FULLSTOP de>
+
+# This PKGBUILD is based on the packages jabref and jabref-git
+
+pkgname=jabref-latest
+pkgver=20190426
+pkgrel=1
+pkgdesc="GUI frontend for BibTeX, written in Java; latest master version from git"
+arch=('any')
+url="https://www.jabref.org/"
+license=('MIT')
+provides=('jabref')
+conflicts=('jabref')
+depends=('archlinux-java-run>=4' 'java-openjfx>=8' 'java-openjfx<9'
+ 'sh'
+ # Additional dependencies for the JavaFX UI, determined using
+ # ldd /usr/lib/jvm/java-8-openjdk/jre/lib/amd64/libglass.so|awk '{print $3}'|xargs pacman -Qo|awk '{print $4}'|sort -u
+ 'atk'
+ 'bzip2'
+ 'cairo'
+ 'expat'
+ 'fontconfig'
+ 'freetype2'
+ 'fribidi'
+ 'gcc-libs'
+ 'gdk-pixbuf2'
+ 'glib2'
+ 'glibc'
+ 'graphite'
+ 'gtk2'
+ 'harfbuzz'
+ 'libdatrie'
+ 'libffi'
+ 'libpng'
+ 'libthai'
+ 'libutil-linux'
+ 'libx11'
+ 'libxau'
+ 'libxcb'
+ 'libxcomposite'
+ 'libxcursor'
+ 'libxdamage'
+ 'libxdmcp'
+ 'libxext'
+ 'libxfixes'
+ 'libxi'
+ 'libxinerama'
+ 'libxrandr'
+ 'libxrender'
+ 'libxtst'
+ 'pango'
+ 'pcre'
+ 'pixman'
+ 'zlib'
+)
+optdepends=('gsettings-desktop-schemas: For web search support')
+source=(https://builds.jabref.org/master/JabRef--master--latest.jar
+ https://raw.githubusercontent.com/JabRef/jabref/master/LICENSE.md
+ jabref.sh
+ jabref.desktop)
+noextract=(JabRef--master--latest.jar)
+sha256sums=('75db47c39bb667b7360c6a31a652803ed38b39245b5846da20985e48555eef5a'
+ '5c1fd05ff42cfe35f7f1722fa349546bab877f00ac0d4756def08ae098615653'
+ 'b51970cc3b70da835f7ebc971d03570417dba7dae837f28f2cce213ecb844768'
+ 'a26845ba60ef2588c52d7d18259a977b146c777f935573bacdffcdcefa2b41b5')
+
+pkgver() {
+ curl --silent --head head https://builds.jabref.org/master/JabRef--master--latest.jar \
+ | grep "Last-Modified" | cut -d' ' -f2- | date -f - +%Y%m%d
+}
+
+prepare() {
+ cd ${srcdir}
+ bsdtar -xf JabRef--master--latest.jar icons/jabref.svg
+}
+
+package() {
+ cd ${srcdir}
+ install -Dm755 JabRef--master--latest.jar ${pkgdir}/usr/share/java/${pkgname}/JabRef-${pkgver}.jar
+
+ install -Dm755 jabref.sh ${pkgdir}/usr/bin/jabref
+ sed -i "s/VERSION/${pkgver}/" ${pkgdir}/usr/bin/jabref
+
+ install -Dm644 jabref.desktop ${pkgdir}/usr/share/applications/${pkgname}.desktop
+ install -Dm644 icons/jabref.svg ${pkgdir}/usr/share/pixmaps/${pkgname}.svg
+ install -Dm644 LICENSE.md ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md
+}
diff --git a/jabref.desktop b/jabref.desktop
new file mode 100644
index 00000000000..d9cf381897e
--- /dev/null
+++ b/jabref.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Name=JabRef
+GenericName=BibTeX Editor
+Comment=JabRef is an open source bibliography reference manager. The native file format used by JabRef is BibTeX, the standard LaTeX bibliography format.
+Type=Application
+Terminal=false
+Icon=jabref
+Exec=jabref %U
+Keywords=bibtex;biblatex;latex;bibliography
+Categories=Office;
+StartupWMClass=org-jabref-JabRefMain
+MimeType=text/x-bibtex;
diff --git a/jabref.sh b/jabref.sh
new file mode 100644
index 00000000000..232a1991d7f
--- /dev/null
+++ b/jabref.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+/usr/bin/archlinux-java-run --min 8 --max 8 --feature javafx -- -jar /usr/share/java/jabref-latest/JabRef-VERSION.jar "$@"