-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
53 lines (46 loc) · 1.39 KB
/
PKGBUILD
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
45
46
47
48
49
50
51
52
53
# $Id$
# Contributor: Luca Weiss <luca (at) z3ntu (dot) xyz>
# Contributor: Ivan Semkin (ivan at semkin dot ru)
# Contributor: Bart Ribbers <[email protected]>
# Contributor: Alexey Andreyev <[email protected]>
# Maintainer: James Kittsmiller (AJSlye) <[email protected]>
pkgname=qt5-pim-git
pkgver=r1020.8fec622c
pkgrel=1
pkgdesc='Qt Personal Information Management'
url='http://code.qt.io/cgit/qt/qtpim.git'
arch=(x86_64 aarch64)
license=(LGPL-2.1-only LGPL-3.0-only GPL-3.0-only Qt-GPL-exception-1.0)
conflicts=(qt5-pim)
provides=(qt5-pim)
depends=(qt5-declarative)
makedepends=(git)
source=("git+https://code.qt.io/qt/qtpim.git" "0001-Patch-module-version.patch")
sha512sums=('SKIP'
'6e7d43f36bbf23dedd860727259a4bf5dfad8e8548a3d4a19c974b9afed87ebb25264cc08572bdbb0f703c95ae1a5f6a7a5ca8cd742feaf46440fe7c282535d2')
pkgver() {
cd qtpim
# Upstream has one tag but it's from 2012
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
mkdir -p build
cd qtpim
patch -p1 --input="${srcdir}/0001-Patch-module-version.patch"
}
build() {
cd build
qmake-qt5 ../qtpim
make
}
check() {
cd build
make check TESTARGS="-silent"
}
package() {
cd build
make INSTALL_ROOT="$pkgdir/" install
# Drop QMAKE_PRL_BUILD_DIR because it references the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}