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

pkgname=libmygpo-qt5-git
pkgver=1.0.9.13.gba5db4d
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")
sha256sums=('SKIP')
provides=('libmygpo-qt5')
conflicts=('libmygpo-qt5')

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

prepare() {
  rm -rf build
  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
}