updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / kchildlock / PKGBUILD
blob76c6f5b4d7ba123a394de0c1b91d63ce88600df3
1 # Maintainer: Miguel Aguilar <zodiac_es@yahoo.es>
2 # Contributor: Dany Martineau <dany.luc.martineau@gmail.com>
4 pkgname=kchildlock
5 pkgver=0.90.2
6 pkgrel=1
7 pkgdesc="Monitors and restricts the usage time of a children spent on the computer.  For KDE4"
8 url="http://sourceforge.net/projects/kchildlock"
9 license="GPL"
10 arch=('i686' 'x86_64')
11 depends=('kdebase-runtime')
12 makedepends=('cmake' 'automoc4')
13 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
14 md5sums=('138d81468ee905e9705e2ef46287fa6c')
16 build() {
18           find . -name CMakeLists.txt -exec sed -i 's/add_subdirectory(doc)/#add_subdirectory(doc)/g' {} \;
19           cd ${srcdir}/$pkgname-$pkgver
20           cmake -DCMAKE_INSTALL_PREFIX=/usr -G KDevelop3 -DCMAKE_BUILD_TYPE=Release \
21            -DDATA_INSTALL_DIR=/usr/share/kde4/ -DICON_INSTALL_DIR=/usr/share/ .
22           make
23         }
25 package() {
26         cd ${srcdir}/$pkgname-$pkgver
27         make DESTDIR=${pkgdir} install