summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a4ecbcdf6d700d0515b8a50575124abcc72d2c7 (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
# Maintainer: FraV1982 <consulenza dot vangi at outlook dot com>

pkgname=pearson-reader-plus-full-lang
pkgver=4.9
pkgrel=1
pkgdesc="A simple Reader for Pearson digital books."
arch=('x86_64')
url="https://www.pearson.com/"
license=('custom')
depends=('sdl2' 'unzip' 'tar')
optdepends=(
'chromium: a modern browser for the application to work'
'firefox: a modern browser for the application to work'
'google-chrome: a modern browser for the application to work'
'evince: a pdf viewer'
'epdfview: a pdf viewer'
'qpdfview: a pdf viewer'
'mupdf: a pdf viewer'
)
options=("!emptydirs" "!strip")

_debname=B300361C

source=(https://link.pearson.it/B300361C)
md5sums=('SKIP')
sha256sums=('SKIP')

prepare() {
  cd "$srcdir"
  msg2 "Decompressing Debian package..."
  ar xv "${_debname}" > /dev/null
  tar -xf data.tar.gz > /dev/null

  #find ./{etc,usr} -type d -exec chmod 755 '{}' \;
  find ./opt -type d -exec chmod 755 '{}' \;
  sudo chmod 755 /opt/rplus-desktop/
}

package() {
  cd "$srcdir"
  #cp -dpr --no-preserve=ownership {opt,usr} "$pkgdir"
  cp -dpr --no-preserve=ownership ./opt "$pkgdir"
}