summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc7a30257f7486bed9fb1277c47af8c83c3fb1b1 (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
# Maintainer: Florian Bigard <florian.bigard@gmail.com>
# Thanks to Andrea Scarpino <andrea@archlinux.org>

pkgname=libmygpo-qt5-git
pkgver=1.0.8.2.g7946293
pkgrel=1
pkgdesc="A C++/Qt client library for gpodder.net. Git and Qt5 version."
arch=('i686' 'x86_64')
url="http://wiki.gpodder.org/wiki/Libmygpo-qt"
license=('LGPL2.1')
depends=('qt5-base')
makedepends=('cmake' 'doxygen')
source=("git+https://github.com/gpodder/libmygpo-qt.git" "include_suffix.patch")
sha256sums=('SKIP' '7994f3c29086268b8138e7ac0c0d1a99acfa55e07a7695507f314903b890f79d')
provides=('libmygpo-qt5')
conflicts=('libmygpo-qt5')

pkgver() {
  cd libmygpo-qt
  git describe | sed 's/^v//;s/-/./g;s/_/./g;'
}

prepare() {
  cd libmygpo-qt
  patch -Np0 -i "../include_suffix.patch"
  cd ../
  mkdir build
}

build() {
  cd build
  cmake "../libmygpo-qt" \
    -DBUILD_WITH_QT4=OFF \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package(){
  cd build
  make DESTDIR="${pkgdir}" install
}