-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
53 lines (45 loc) · 1.27 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: Bart Ribbers <[email protected]>
# Contributor: Alexey Andreyev <[email protected]>
# Maintainer: James Kittsmiller (AJSlye) <[email protected]>
_host="git.sailfishos.org"
_project=mer-core
_basename=nemo-qml-plugin-contacts
_branch=master
_gitname=$_basename
pkgname=$_basename-git
pkgver=0.2.25.r0.g3d0a59b
pkgrel=1
pkgdesc="Nemo QML contacts plugin"
arch=('x86_64' 'aarch64')
url="https://$_host/$_project/$_gitname#branch=$_branch"
license=('BSD-3-Clause')
depends=('qt5-contacts')
makedepends=('git' 'qt5-tools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname}::git+${url}" "update-api-for-qtpim-5.9.patch")
md5sums=('SKIP' '4b5d9e896ef12d7039ecd3d233efe432')
pkgver() {
cd "${srcdir}/${pkgname}"
( set -o pipefail
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
) 2>/dev/null
}
prepare() {
cd "${srcdir}/${pkgname}"
patch -p1 --input="${srcdir}/update-api-for-qtpim-5.9.patch"
}
build() {
cd "${srcdir}/${pkgname}"
# Not possible to install in build subdir
qmake-qt5
make
}
package() {
cd "${srcdir}/${pkgname}"
make INSTALL_ROOT="${pkgdir}" install
# Remove installed tests
rm -r "$pkgdir"/opt
}