summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Rojas2015-11-06 19:45:19 +0100
committerAntonio Rojas2015-11-06 19:45:19 +0100
commitfb6b485f958b033824b88ae6d04882840b50b00e (patch)
treec30ef23b84c35f6e07a7c76b6f26492420fc609e
downloadaur-fb6b485f958b033824b88ae6d04882840b50b00e.tar.gz
Initial import
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD42
-rw-r--r--discover-git.install12
3 files changed, 83 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..0fd9ab92eead
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = discover-git
+ pkgdesc = KDE and Plasma resources management GUI
+ pkgver = r4012.6562fa1
+ pkgrel = 1
+ url = https://projects.kde.org/projects/kde/workspace/discover
+ install = discover-git.install
+ arch = i686
+ arch = x86_64
+ groups = plasma
+ license = LGPL
+ makedepends = extra-cmake-modules
+ makedepends = git
+ makedepends = python
+ makedepends = plasma-framework
+ depends = packagekit-qt5
+ depends = knewstuff
+ depends = appstream-qt
+ depends = archlinux-appstream-data
+ depends = hicolor-icon-theme
+ provides = discover
+ conflicts = muon
+ conflicts = discover
+ conflicts = muon-git
+ replaces = muon-git
+ source = git://anongit.kde.org/discover.git
+ md5sums = SKIP
+
+pkgname = discover-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..ed77b353347b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer: Antonio Rojas <arojas@archlinux.org>
+
+pkgname=discover-git
+pkgver=r4012.6562fa1
+pkgrel=1
+pkgdesc='KDE and Plasma resources management GUI'
+arch=(i686 x86_64)
+url='https://projects.kde.org/projects/kde/workspace/discover'
+license=(LGPL)
+depends=(packagekit-qt5 knewstuff appstream-qt archlinux-appstream-data hicolor-icon-theme)
+makedepends=(extra-cmake-modules git python plasma-framework)
+conflicts=(muon discover muon-git)
+provides=(discover)
+replaces=(muon-git)
+source=('git://anongit.kde.org/discover.git')
+groups=(plasma)
+md5sums=('SKIP')
+install=$pkgname.install
+
+pkgver() {
+ cd discover
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../discover \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=lib \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
diff --git a/discover-git.install b/discover-git.install
new file mode 100644
index 000000000000..f80ffb217b01
--- /dev/null
+++ b/discover-git.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}