summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ae97df9f06a00dc702ceffaa0251345c23a2cdb0 (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
# Maintainer: Giorgio Wicklein <giowckln@gmail.com>
pkgname=passiflora
pkgver=2.2
pkgrel=1
pkgdesc="Spagyrik Datenbank Passiflora"
arch=('i686' 'x86_64')
url="https://github.com/joshirio/passiflora"
license=('BSD')
depends=('qt5-base' 'qt5-svg' 'qt5-imageformats' 'sqlite')
source=("http://passiflora.enmed.de/files/$pkgname-$pkgver-src.tar.gz")
md5sums=('23581947b47ad6f64e713439d577ccf7')

build() {
  qmake-qt5 -config release
  make
}

package() {
  cd "$srcdir"

  # Binary
  install -Dm755 "$srcdir/passiflora" "${pkgdir}/usr/bin/passiflora"

  # Icons and desktop files
  install -d "${pkgdir}/usr/share/"
  cp -R "$srcdir/stuff/installers/deb/usr/share/applications/" "${pkgdir}/usr/share/"
  cp -R "$srcdir/stuff/installers/deb/usr/share/pixmaps/" "${pkgdir}/usr/share/"

  # Copy license
  install -Dm644 "$srcdir/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}