blob: d7bbfb50b88065998eeb202b1e058e0304aa0b35 (
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
58
59
60
61
|
# Maintainer: Brian Bidulock <bidulock@openss7.org>
pkgname=asclock-xlib
_pkgname=asclock
pkgver=2.0.12
pkgrel=6
pkgdesc="The AfterStep clock dock app - Xlib version"
url="http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/time.html#asclock"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libxpm')
makedepends=('imake')
provides=('asclock')
conflicts=('asclock' 'asclock-gtk')
source=("http://gentoo.osuosl.org/distfiles/$_pkgname-$pkgver.tar.gz"
"asclock.desktop")
md5sums=('99cb6491358bb0044e9b75b2e06b043b'
'54149bbbef522b2bc5d5e65ef76f4cbd')
prepare() {
cd "$srcdir/$_pkgname-$pkgver"
rm -fr default_theme
mkdir default_theme
cd default_theme
cp -s ../themes/classic/* .
rm -f month.xpm
cp -s ../languages/english/month.xpm .
for f in *.xpm ; do
sed -e 's,^static ,,' -i $f
done
cd ..
sed -e 's,share/asclock/,share/asclock/themes/,' -i config.c
xmkmf
}
build() {
cd "$srcdir/$_pkgname-$pkgver"
make clean
make
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make DESTDIR="$pkgdir" install install.man
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/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:
|