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

pkgname=pearson-reader-plus-full-lang
pkgver=5.2
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=ReaderPlus_5.2_Desktop_Linux.deb

source=(https://readerplus-download.s3.amazonaws.com/rplus4_desktop_prod_builds/5.2/ReaderPlus_5.2_Desktop_Linux.deb)
sha256sums=('4203ab3a02b8fc3179b9528102caff0275fbbfe9f7e81b1eb6bd581e9b4431c8')

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

  find ./opt -type d -exec chmod 755 '{}' \;
  find ./usr -type d -exec chmod 755 '{}' \;
}

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