blob: 739171adb9afaa431dc7748ca7f903ed841aadb2 (
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
|
# Maintainer: Chiwan Park <chiwanpark@hotmail.com>
pkgname='mendeley-reference-manager'
pkgver=2.127.1
pkgrel=1
pkgdesc='Mendeley Reference Manager'
arch=('x86_64')
depends=('harfbuzz' 'libgl' 'libxss')
url='https://www.mendeley.com/download-reference-manager'
license=('custom')
_file=mendeley-reference-manager-${pkgver}-x86_64.AppImage
source=(https://static.mendeley.com/bin/desktop/${_file})
sha256sums=('56d1adbfda2b7ce9ff0cb22b9d4755fdf19978fd59a42e9be61fc81bc47368e8')
options=('!strip')
prepare() {
# Extract AppImage contents so we install bypassing every and all AppImage
# desktop integration/deployment mechanisms
chmod +x "${_file}"
"./${_file}" --appimage-extract &>/dev/null
}
package() {
install -d "$pkgdir"/usr/bin/
install -d "$pkgdir"/usr/local/mendeley-reference-manager/
install -d "$pkgdir"/usr/share/applications/
install -d "$pkgdir"/usr/share/icons/
install -m644 squashfs-root/mendeley-reference-manager.png "$pkgdir"/usr/share/icons/
sed -i 's%Exec=AppRun%Exec=/usr/bin/mendeley-reference-manager%g' squashfs-root/mendeley-reference-manager.desktop
install -m644 squashfs-root/mendeley-reference-manager.desktop "$pkgdir"/usr/share/applications/
find squashfs-root -type d -exec chmod 755 {} +
mv squashfs-root/* "$pkgdir"/usr/local/mendeley-reference-manager/
ln -s /usr/local/mendeley-reference-manager/mendeley-reference-manager "$pkgdir"/usr/bin/mendeley-reference-manager
}
|