summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a09f246ede3f48b50ca59f4e5fa9fe68097546e (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
# Contributor: Luca Bennati <lucak3 AT gmail DOT com>
# Maintainer: zoe <chp321 AT gmail DOT com>

pkgname=jpdfbookmarks
pkgver=2.5.2
pkgrel=3
_pkgreal="${pkgname}-${pkgver}"
pkgdesc="Java PDF bookmarks editor"
arch=('any')
url="https://flavianopetrocchi.blogspot.com/"
license=('GPL3')
depends=('java-environment' 'hicolor-icon-theme')
install=jpdfbookmarks.install
source=("https://downloads.sf.net/sourceforge/${pkgname}/${_pkgreal}.tar.gz"
        jpdfbookmarks.desktop)
md5sums=('035c9cb2f828891cf0bea37323968f7a'
         '0d3d8e406fde4f9cdcb410a241a309b9')

build() {
  true
}

package() {
  cd "${srcdir}/${_pkgreal}"

  mkdir -p "${pkgdir}/usr/share/java/${pkgname}/lib/"
  install -Dm644 lib/* "${pkgdir}/usr/share/java/${pkgname}/lib/"
  install -Dm755 jpdfbookmarks.jar "${pkgdir}/usr/share/java/${pkgname}/"
  install -DTm755 link_this_in_linux_path.sh "${pkgdir}/usr/share/java/${pkgname}/jpdfbookmarks.sh"
  install -DTm755 link_this_in_linux_path_cli.sh "${pkgdir}/usr/share/java/${pkgname}/jpdfbookmarks_cli.sh"
  install -DTm644 jpdfbookmarks.png "${pkgdir}/usr/share/icons/hicolor/128x128/apps/jpdfbookmarks.png"
  install -DTm644 ../jpdfbookmarks.desktop "${pkgdir}/usr/share/applications/jpdfbookmarks.desktop"
  install -Dm644 README "${pkgdir}/usr/share/java/${pkgname}/"

  mkdir -p "${pkgdir}/usr/bin/"
  ln -s "/usr/share/java/${pkgname}/jpdfbookmarks.sh" "${pkgdir}/usr/bin/jpdfbookmarks"
  ln -s "/usr/share/java/${pkgname}/jpdfbookmarks_cli.sh" "${pkgdir}/usr/bin/jpdfbookmarks_cli"
}