summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7078cbdf0bd6b49d4297c506cf87272ab5ddcbe5 (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
pkgname=qolibri
pkgver=2.1.3
pkgrel=2
pkgdesc="A QT-based EPWING dictionary viewer"
url="https://github.com/ludios/qolibri/"
arch=('x86_64' 'i686')
license=('GPL2')
depends=('qt5-base' 'qt5-tools' 'qt5-multimedia' 'qt5-webengine' 'zlib' 'eb-library')
makedepends=('cmake')
source=("https://github.com/ludios/qolibri/archive/${pkgver}.tar.gz"
        'qolibri.desktop'
        'qolibri-128.png')
md5sums=('e287a5c29c85bc55a6a2adccf6787e11'
         '9c68770443635f3718d8d291f260de10'
         '85bd387834f16a9ee92824acfcdfd5f2')

prepare () {
  mkdir -p -- build
}

build() {
  cd build
  cmake "../${pkgname}-${pkgver}" \
    -DPROJECT_VERSION=$pkgver \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd build
  make DESTDIR="$pkgdir" install
  cd "$srcdir"
  install -Dm644 qolibri-128.png "$pkgdir"/usr/share/qolibri/icon.png
  install -Dm644 qolibri.desktop "$pkgdir"/usr/share/applications/qolibri.desktop
}