summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfed9c5bc881318c3c8602683eab045dcb60f7b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: edio <edio at archlinux dot us>

pkgname=systemd-kdemodules-git
pkgver=20130310
pkgrel=1
pkgdesc="systemd units to load KDE modules in your custom environment"
arch=('any')
url="https://github.com/edio/systemd-kdemodules"
license=('GPL3')
depends=('systemd' 'dbus' 'kdebase-runtime')
makedepends=('git')
install='systemd-kdemodules.install'

_gitroot="https://github.com/edio/systemd-kdemodules.git"
_gitname="systemd-kdemodules"

build () {
  cd "${srcdir}"

  msg "Connecting to the GIT server..."
  if [ -d ${_gitname} ] ; then
    cd ${_gitname}
    git pull origin
    msg "The local files are updated..."
  else
    git clone ${_gitroot} ${_gitname}
    cd ${_gitname}
  fi
  msg "GIT checkout done."
}


package() {
  cd "${srcdir}"/${_gitname}
  install -d ${pkgdir}/usr/lib/systemd/user
  cp *.service ${pkgdir}/usr/lib/systemd/user/
  cp *.target ${pkgdir}/usr/lib/systemd/user/
}

# vim: ts=2 sw=2 et: