blob: cf1e013922ff5dcac86f18a0d3b94b510ac83cff (
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
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Roman Vasilev <2rvasilev@live.ru>
# Maintainer: Cloud Han <heliumhgy@gmail.com>
pkgname=docear
pkgver=1.2.0_stable
pkgrel=5
pkgdesc="[Deprecated]: https://aur.archlinux.org/packages/docear/#comment-640786 Docear is an academic literature suite for searching, organizing and creating academic literature, built upon the mind mapping software Freeplane and the reference manager JabRef."
arch=('any')
url="http://www.docear.org/"
license=('GPL 2')
groups=()
depends=('jre8-openjdk-headless')
makedepends=()
optdepends=()
provides=('docear')
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}_${pkgver}.tar.gz::http://docear.org/downloads/docear_linux.tar.gz"
"docear-metadata-lib-0.0.1::https://www.dropbox.com/s/1g7ztpmvulr03or/docear-metadata-lib-0.0.1?dl=1"
"docear.desktop")
md5sums=('679747b7624e29efa0f82ca7fa96bc53'
'0247fc67435670827a7ba0e86d409a4a'
'6023a37923cd962f53db05ed5e2a6b21')
noextract=(docear-metadata-lib-0.0.1)
build() {
# echo "Cleaning src directory..."
# find "${srcdir}" -maxdepth 1 -mindepth 1 -type d -exec rm -r {} \;
# echo "Cleaned src directory"
# bsdtar -xf "${pkgname}_${pkgver}.tar.gz"
cd ${srcdir}
rm `find . -name "docear-metadata-lib-0.0.1.jar"`
# mv "docear-"* "docear"
# cp -sr "docear-"* docear
}
package()
{
install -dm 755 "${pkgdir}/usr/share/docear"
cp -r "${srcdir}/docear-"*/* "${pkgdir}/usr/share/docear/"
find "${pkgdir}/usr/share/docear" -type d -exec chmod 755 {} \;
find "${pkgdir}/usr/share/docear" -type f -exec chmod 644 {} \;
chmod 755 "${pkgdir}/usr/share/docear/docear.sh"
sed -i -e 's/$(which java)/\/usr\/lib\/jvm\/java-8-openjdk\/jre\/bin\/java/g' "${pkgdir}/usr/share/docear/docear.sh"
install -dm 755 "${pkgdir}/usr/bin"
echo "#! /bin/sh" > "${pkgdir}/usr/bin/docear"
echo "/usr/share/docear/docear.sh \$*" >> "${pkgdir}/usr/bin/docear"
chmod 755 "${pkgdir}/usr/bin/docear"
install -d "${pkgdir}/usr/share/applications"
install -Dm 644 "$srcdir/docear.desktop" "${pkgdir}/usr/share/applications/docear.desktop"
install -Dm 644 "$srcdir/docear-metadata-lib-0.0.1" "${pkgdir}/usr/share/docear/plugins/org.docear.plugin.bibtex/lib/docear-metadata-lib-0.0.1.jar"
# enable antialiasing when start up docear
echo "-Dawt.useSystemAAFontSettings=on" >> "${pkgdir}/usr/share/docear/init.xargs"
}
|