summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7517f87d8609edc8b233e9b8b8186cbda9110ef5 (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
# Maintainer: Tjaart van der Walt <archlinux@tjaart.co.za>

# TODO: There are more optional dependencies we should add: jpegoptim facedetect

pkgname=fgallery
pkgver=1.8.1
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc='a modern, minimalist javascript photo gallery'
url='https://www.thregr.org/~wavexx/software/fgallery/'
license=('GPL')
depends=('fbida' 'imagemagick' 'lcms' 'perl>=5.14' 'perl-json' 'perl-image-exiftool' 'zip')
optdepends=('pngcrush' 'p7zip')
source=("https://github.com/wavexx/fgallery/archive/fgallery-${pkgver}.tar.gz")
sha256sums=('7cdabf21aa76e33f37902ace0d12e2a338a3a96edb37cd88b28ce7af34ef57e1')

destdir="/usr/share/fgallery"
bindir="/usr/bin"
mandir="/usr/share/man"

package() {
  # make desired dirs
  mkdir -p ${pkgdir}${destdir}
  mkdir -p ${pkgdir}${bindir}

  # Copy the source to destdir
  cp -r ${srcdir}/fgallery-fgallery-${pkgver}/*  ${pkgdir}${destdir}

  # Add a  shortcut to fgallery in bin dir
  echo "${destdir}/fgallery \$@" >  ${pkgdir}${bindir}/fgallery
  chmod 755 ${pkgdir}${bindir}/fgallery

  # Add a shortcut to the fcaption util in /usr/local/bin 
  echo  "${destdir}/utils/fcaption" > ${pkgdir}${bindir}/fcaption
  chmod 755 ${pkgdir}${bindir}/fcaption


  # # Copy the fgallery manpage
  # mkdir -p ${pkgdir}${mandir}
  # cp ${srcdir}/fgallery.1 ${pkgdir}${mandir}/man.1/fgallery.1  
}