summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2a3ee5cd9b6010de8671b4016b81e4888a084373 (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
# Maintainer: PSposito <http://bit.do/linuxer>  <https://gitlab.com/psposito>
# Contributor: Dimitrios - Georgios Kontopoulos <https://launchpad.net/~dgkontopoulos/+archive/ubuntu/orthcal>
pkgname="orthcal-darkthemed"
pkgver="3.0.1"
pkgrel="0"
conficts="orthcal-lightthemed"
pkgdesc="An Orthodox Calendar for ARCH Linux"
pkgdir="src/"
instdir="/opt/"
url="https://gitlab.com/psposito/otrhcal"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('pygtk' 'python' 'perl' 'perl-gtk2-trayicon' 'perl-dbi' 'perl-dbd-sqlite' 'perl-date-calc' 'perl-gettext' 'libappindicator-gtk3')
provides=("${pkgname}")
source=("https://gitlab.com/psposito/otrhcal/uploads/0b52dfd5af969a9c2032841df2b1dc1f/orthcal-darkthemed-3.0.1.tar.bz2")
sha256sums=('SKIP')

package() {
  local _languages=(el es ro ru)
  local _lang
  cd "${pkgdir}" #-${pkgname}"
  install -dm 755 "$pkgdir"/opt/orthcal/bin/
  install -dm 755 "$pkgdir"/opt/orthcal/content/images
  install -dm 755 "$pkgdir"/usr/share/applications/
  for _lang in ${_languages[@]}
  do
    install -dm 755 "$pkgdir"/opt/orthcal/translations/locale/$_lang/LC_MESSAGES/
  done
  cd "${srcdir}/${pkgname}-${pkgver}"
  pwd
  install -Dm 755 bin/OrthCal.pl "$pkgdir"/opt/orthcal/bin/OrthCal.pl
  install -Dm 755 bin/OrthCal_ind.py "$pkgdir"/opt/orthcal/bin/OrthCal_ind.py
  install -Dm 644 content/saints.db "$pkgdir"/opt/orthcal/content
  install -Dm 644 content/images/* "$pkgdir"/opt/orthcal/content/images
  for _lang in ${_languages[@]}
  do
    install -Dm 644 translations/locale/$_lang/LC_MESSAGES/* "$pkgdir"/opt/orthcal/translations/locale/$_lang/LC_MESSAGES/
  done
  install -Dm 755 extras-orthcal.desktop "$pkgdir"/usr/share/applications/
}