summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20a53e30d8eaa0460f5d25bc7f80fcea3e31cba4 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=asclock-gtk
pkgver=2.1.10beta
pkgrel=5
pkgdesc="The AfterStep clock dock app - Gtk version"
url="http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/time.html#asclock"
arch=('i686' 'x86_64')
license=('GPL')
depends=('gtk')
makedepends=('libxt')
provides=('asclock')
conflicts=('asclock-classic' 'asclock-xlib')
source=("http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/files/$pkgname-$pkgver.tar.gz"
        "asclock.desktop")
md5sums=('afa682d7954cb4d5c443202ffdd04b17'
         '00cbeb63e46bc7c402e20680e0aa1fec')

prepare() {
  cd "$srcdir/$pkgname"
  rm -f default_theme
  ln -s themes/classic default_theme
  for f in default_theme/*.xpm ; do
    sed -e 's,^static ,,' -i $f
  done
  sed -e 's,/usr/local,/usr,g' -i Makefile
  sed -e 's,share/asclock,share/asclock/themes,' -i Makefile
}

build() {
  cd "$srcdir/$pkgname"
  CFLAGS+=" -fcommon"
  make CFLAGS="$CFLAGS" asclock
}

package() {
  cd "$srcdir/$pkgname"
  install -Dm0755 asclock "$pkgdir/usr/bin/asclock"
  install -d "$pkgdir/usr/share/asclock/themes"
  install -d "$pkgdir/usr/share/asclock/themes/Newstone"
  install -t "$pkgdir/usr/share/asclock/themes/Newstone" themes/Newstone/*
  install -d "$pkgdir/usr/share/asclock/themes/Orb"
  install -t "$pkgdir/usr/share/asclock/themes/Orb" themes/Orb/*
  install -d "$pkgdir/usr/share/asclock/themes/Stone"
  install -t "$pkgdir/usr/share/asclock/themes/Stone" themes/Stone/*
  install -d "$pkgdir/usr/share/asclock/themes/analog"
  install -t "$pkgdir/usr/share/asclock/themes/analog" themes/analog/*
  install -d "$pkgdir/usr/share/asclock/themes/beats"
  install -t "$pkgdir/usr/share/asclock/themes/beats" themes/beats/*
  install -d "$pkgdir/usr/share/asclock/themes/classic"
  install -t "$pkgdir/usr/share/asclock/themes/classic" themes/classic/*
  install -d "$pkgdir/usr/share/asclock/themes/shaped"
  install -t "$pkgdir/usr/share/asclock/themes/shaped" themes/shaped/*
  install -Dm0644 "$srcdir/asclock.desktop" \
    "$pkgdir/usr/share/applications/asclock.desktop"
}

# vim: set sw=2 et: