summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorsl1pkn072015-06-08 16:43:16 +0200
committersl1pkn072015-06-08 16:43:16 +0200
commit2feed468b1370def312740bc6999ab88cc9ada3b (patch)
tree667b51532e5d17e8d5b6f89e5eb6d01148388eaf /PKGBUILD
downloadaur-2feed468b1370def312740bc6999ab88cc9ada3b.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..1d631365af0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+# Contributor: Xiao-Long Chen <chenxiaolong@cxl.epac.to>
+# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
+# Contributor: mosra <mosra@centrum.cz>
+
+pkgname=kdevelop-git
+pkgver=4.90.90.r20707.07781db
+pkgrel=1
+pkgdesc="A C/C++ development environment for KDE. (GIT Version)"
+arch=(i686 x86_64)
+url="http://www.kdevelop.org/"
+license=(GPL)
+groups=('kde')
+depends=('qt5-tools' 'kdevplatform-git' 'krunner' 'hicolor-icon-theme')
+makedepends=('cmake' 'git' 'okteta' 'krunner' 'plasma-framework')
+optdepends=('krunner: For enabling the KDevelop runner'
+ 'plasma-framework: Plasma libraries for enabling the plasma addons'
+ 'okteta: hex editor integration'
+ 'konsole: embedded terminal'
+ 'subversion: SVN support'
+ 'git: Git support'
+ 'cvs: Concurrent Versions System support'
+ 'gdb: GNU Debugger support'
+ 'qt4-doc: qt4 documentation integration'
+ 'qt5-doc: qt5 documentation integration'
+ 'cmake: build system')
+provides=('kdevelop')
+conflicts=('kdevelop')
+source=(git+git://anongit.kde.org/kdevelop)
+sha1sums=('SKIP')
+install='kdevelop-git.install'
+
+pkgver() {
+ cd kdevelop
+ _ver="$(cat CMakeLists.txt | grep -e KDEVELOP_VERSION_MAJOR -e KDEVELOP_VERSION_MINOR -e KDEVELOP_VERSION_PATCH | head -n3 | cut -d ' ' -f3 | tr -d ')')"
+ echo "$(echo ${_ver} | tr ' ' .).r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ mkdir -p build
+}
+
+build() {
+ cd build
+ cmake ../kdevelop \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=lib \
+ -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
+ -DBUILD_TESTING=OFF
+ make
+}
+
+package() {
+ make -C build DESTDIR="${pkgdir}" install
+}