diff --git a/kdevelop/PKGBUILD b/kdevelop/PKGBUILD new file mode 100644 index 000000000..e46e978f7 --- /dev/null +++ b/kdevelop/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 78865 2010-04-28 21:40:21Z andrea $ +# Maintainer: Andrea Scarpino +# Contributor: Giovanni Scafora + +pkgname=kdevelop +pkgver=4.0.0 +pkgrel=1 +pkgdesc="A C/C++ development environment for KDE" +arch=('i686' 'x86_64') +url="http://www.kdevelop.org/" +license=('GPL') +depends=('kdebase-workspace' 'kdevplatform') +makedepends=('cmake' 'automoc4' 'perl') +install=${pkgname}.install +source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2") +md5sums=('9f63a0f68bc30d34c79f935386fb512d') + +build() { + cd ${srcdir} + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON + make || return 1 +} + +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install || return 1 +} diff --git a/kdevelop/kdevelop.install b/kdevelop/kdevelop.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/kdevelop/kdevelop.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +} diff --git a/kdevplatform/PKGBUILD b/kdevplatform/PKGBUILD new file mode 100644 index 000000000..3db765cb2 --- /dev/null +++ b/kdevplatform/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 78864 2010-04-28 21:40:12Z andrea $ +# Maintainer: Andrea Scarpino +# Contributor: Giovanni Scafora + +pkgname=kdevplatform +pkgver=1.0.0 +pkgrel=1 +pkgdesc="A C/C++ development platform for KDE" +arch=('i686' 'x86_64') +url="http://www.kdevelop.org/" +license=('GPL') +depends=('kdelibs' 'boost' 'subversion' 'commoncpp2') +optdepends=("kdesdk-kompare: difference checking") +makedepends=('cmake' 'automoc4') +install=${pkgname}.install +source=("http://download.kde.org/stable/kdevelop/4.0.0/src/${pkgname}-${pkgver}.tar.bz2") +md5sums=('0aa7a6d207d5675ed31ceeacfdda7a69') + +build() { + cd ${srcdir} + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON + make || return 1 +} + +package() { + cd ${srcdir}/build + make DESTDIR=${pkgdir} install || return 1 +} diff --git a/kdevplatform/kdevplatform.install b/kdevplatform/kdevplatform.install new file mode 100644 index 000000000..e70c054ec --- /dev/null +++ b/kdevplatform/kdevplatform.install @@ -0,0 +1,11 @@ +post_install() { + xdg-icon-resource forceupdate --theme hicolor &> /dev/null +} + +post_upgrade() { + post_install +} + +post_remove() { + post_install +}