summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 242276f92866b612cfccc2f07c78c0e09b5e8022 (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
# Contributor: Juan Diego Tascon
# Maintainer : Marcos Heredia <chelqo@gmail.com>

_pkgname=tzclock
pkgname=${_pkgname}-gtk2
pkgver=4.2
pkgrel=3
pkgdesc="Cairo clock to display the time around the world"
arch=('i686' 'x86_64')
url="http://tzclock.org/"
license=("GPL")
depends=('gtk2' 'libnotify' 'libdial' 'libgnomeui')
conflicts=("${_pkgname}")
source=("https://theknight.co.uk/releases/Source/$_pkgname-$pkgver.tar.bz2")
sha512sums=('0bf7eeb70fd41c0c69b024f13ced91eb0e35918ff509c31ec64f19c31b0b4e721f889e8779b4679fdd81c2d42cce06d2bd62289d5c66466af4a8cbb25eb554ab')

build() {
  cd $srcdir/${_pkgname}-$pkgver/
  ./configure --prefix=/usr
  make
}

package() {
  cd $srcdir/${_pkgname}-$pkgver/
  make DESTDIR=${pkgdir} install

  install -dm755 $pkgdir/usr/share/licenses/$pkgname/
  install -Dpm644 COPYING $pkgdir/usr/share/licenses/$pkgname/

  install -dm755 $pkgdir/usr/share/doc/$pkgname/
  install -Dpm644 AUTHORS INSTALL tzclock.spec debian/control $pkgdir/usr/share/doc/$pkgname/

  echo "Comment[es]=Mostrar la hora alrededor del mundo" >>$pkgdir/usr/share/applications/TzClock.desktop
}