archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libmygpo-qt / trunk / PKGBUILD
blob35f7b6b7cb03640b8c2a37b77f9f6986cf7af14a
1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgbase=libmygpo-qt
5 pkgname=(libmygpo-qt5)
6 pkgver=1.1.0
7 pkgrel=3
8 pkgdesc='A C++/Qt client library for gpodder.net'
9 arch=('x86_64')
10 url="http://wiki.gpodder.org/wiki/Libmygpo-qt"
11 license=('LGPL2.1')
12 depends=('qt5-base')
13 makedepends=('cmake' 'doxygen' 'qt5-base')
14 source=("http://stefan.derkits.at/files/libmygpo-qt/libmygpo-qt.${pkgver}.tar.gz"
15         libmygpo-qt5.11a.patch::"https://github.com/gpodder/libmygpo-qt/commit/0d76d960.patch"
16         libmygpo-qt5.11b.patch::"https://github.com/gpodder/libmygpo-qt/commit/1b53767b.patch")
17 sha256sums=('82765a9baa7b6bb3a3277759cec9c3779eee691db9180affe35a67813346e1cd'
18             '4894360b246edd38024b8a60b66e3219494655e9d5ed7b3ed7f03958b796ac98'
19             'a4d02a6d15eef8ce08888a4090f5cbb50f744d8af85011ee8e54e84e99756e75')
21 prepare() {
22   mkdir -p build
24   cd libmygpo-qt.${pkgver}
25   patch -p1 -i ../libmygpo-qt5.11a.patch # Fix build with Qt 5.11
26   patch -p1 -i ../libmygpo-qt5.11b.patch
29 build() {
30   cd build
31   cmake ../libmygpo-qt.${pkgver} \
32     -DCMAKE_BUILD_TYPE='Release' \
33     -DCMAKE_INSTALL_PREFIX='/usr' \
34     -DMYGPO_BUILD_TESTS=OFF
35   make
38 package_libmygpo-qt5() {
39   cd build
41   make DESTDIR="${pkgdir}" install
44 # vim: ts=2 sw=2 et: