summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2237745e6fe472450562b2026dfe4eb312cbfaf5 (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
43
44
# Maintainer: ALEXPRO100 <alealexpro100@ya.ru>

_pkgname=qt-mvvm
pkgname=qt5-mvvm-git
pkgver=r3486.59f8083e
pkgrel=2
pkgdesc="Model View ViewModel framework for large Qt C++ applications"
arch=('x86_64')
url="https://github.com/gpospelov/qt-mvvm"
license=('GPL3')
depends=('qt5-base')
makedepends=('git' 'cmake' 'qt5-tools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/gpospelov/${_pkgname}.git"
  "stringutils_limits.patch")
md5sums=('SKIP'
         'b2ab54e609cfe374f0f292f8bb8e1a79')

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  mkdir -p build
  cd "$srcdir/${_pkgname}"
  git submodule init
  git submodule update
  patch --forward --strip=1 --input="${srcdir}/stringutils_limits.patch"
}

build() {
  cd build
  cmake ../${_pkgname} \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib
  make -j$(nproc)
}

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