summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7aa1baa7210919e2ae1a6a24882311a80290a1e0 (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
41
42
43
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>

pkgname=wingpanel-indicator-datetime
pkgver=2.0.1
pkgrel=1
pkgdesc='Date & Time indicator for Wingpanel'
arch=('i686' 'x86_64')
url='https://launchpad.net/wingpanel-indicator-datetime'
license=('GPL3')
groups=('pantheon')
depends=('cairo' 'evolution-data-server' 'glib2' 'glibc' 'gtk3' 'libgee'
         'libical'
         'libgranite.so' 'libwingpanel-2.0.so')
makedepends=('cmake' 'vala' 'wingpanel')
source=("https://launchpad.net/wingpanel-indicator-datetime/loki/${pkgver}/+download/wingpanel-indicator-datetime-${pkgver}.tar.xz")
sha256sums=('87d996186ce2cf4ab09be7e8a5bea8f5f37608e98f0bdd7e22ac90280278d22b')

prepare() {
  cd wingpanel-indicator-datetime-${pkgver}

  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
}

build() {
  cd wingpanel-indicator-datetime-${pkgver}/build

  cmake .. \
    -DCMAKE_BUILD_TYPE='Release' \
    -DCMAKE_INSTALL_PREFIX='/usr' \
    -DCMAKE_INSTALL_LIBDIR='/usr/lib'
  make
}

package() {
  cd wingpanel-indicator-datetime-${pkgver}/build

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: