git » polkit-qt.git » commit 8eef821

Rebuild, fix source, remove unused makedep

author Antonio Rojas
2018-02-09 11:25:07 UTC
committer Antonio Rojas
2018-02-09 11:25:07 UTC
parent f8621942e437d7c58e9b77cac6719013119769dd

Rebuild, fix source, remove unused makedep

PKGBUILD +11 -14

diff --git a/PKGBUILD b/PKGBUILD
index f4c668a..68e9850 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,17 +3,17 @@
 # Contributor: Pierre Schmitz <pierre@archlinux.de>
 
 pkgbase=polkit-qt
-pkgname=('polkit-qt4' 'polkit-qt5')
+pkgname=(polkit-qt4 polkit-qt5)
 pkgver=0.112.0+git20160226
-pkgrel=1
+pkgrel=2
 pkgdesc='A library that allows developers to access PolicyKit API with a nice Qt-style API'
-arch=('x86_64')
+arch=(x86_64)
 url='https://www.kde.org/'
-license=('LGPL')
-makedepends=('cmake' 'automoc4' 'polkit' 'qt4' 'qt5-base')
+license=(LGPL)
+makedepends=(cmake automoc4 polkit qt4 qt5-base git)
 #source=("http://download.kde.org/stable/apps/KDE4.x/admin/${pkgbase}-1-${pkgver}.tar.bz2")
-source=("http://quickgit.kde.org/?p=polkit-qt-1.git&a=snapshot&h=15c7867e88c5278f61896b5531ac2b544add8220&fmt=tgz")
-md5sums=('e74c39223328edf89cdce4e037ef3c38')
+source=("git+https://anongit.kde.org/polkit-qt-1.git#commit=15c7867e88c5278f61896b5531ac2b544add8220")
+sha256sums=('SKIP')
 
 prepare() {
   mkdir build{,-qt5}
@@ -37,18 +37,15 @@ build() {
 }
 
 package_polkit-qt4() {
-  depends=('polkit' 'qt4')
-  replaces=('polkit-qt')
-  provides=('polkit-qt')
-  conflicts=('polkit-qt')
+  depends=(polkit qt4)
 
   cd build
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install
 }
 
 package_polkit-qt5() {
-  depends=('polkit' 'qt5-base')
+  depends=(polkit qt5-base)
 
   cd build-qt5
-  make DESTDIR="${pkgdir}" install
+  make DESTDIR="$pkgdir" install
 }