Browse code

First commit

Qurban Ullah authored on 27/02/2018 17:51:20
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,40 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=bluez-qt
6
+pkgver=5.42.0
7
+pkgrel=1
8
+pkgdesc='Qt wrapper for Bluez 5 DBus API'
9
+arch=(i686 x86_64)
10
+url='https://projects.kde.org/projects/frameworks/bluez-qt'
11
+license=(GPL2)
12
+depends=(qt5-declarative bluez)
13
+makedepends=(extra-cmake-modules)
14
+conflicts=(libbluedevil-frameworks)
15
+groups=(kf5)
16
+source=("http://download.kde.org/stable/frameworks/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz")
17
+md5sums=('40949a460db277907e2f9bb8163e295e')
18
+
19
+prepare() {	
20
+	mkdir -p ${srcdir}/build
21
+}
22
+
23
+build() {
24
+	cd ${srcdir}/build
25
+	cmake ../$pkgname-$pkgver \
26
+		-DCMAKE_INSTALL_PREFIX=/usr \
27
+		-DCMAKE_BUILD_TYPE=Release \
28
+		-DCMAKE_INSTALL_LIBDIR=lib \
29
+		-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
30
+		-DUDEV_RULES_INSTALL_DIR=/usr/lib/udev/rules.d
31
+	make ${MAKEFLAGS}
32
+}
33
+
34
+package() {
35
+	cd ${srcdir}/build
36
+	make DESTDIR="${pkgdir}" install
37
+	# License
38
+	install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING.LIB" \
39
+	"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
40
+}