updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / trayer-dwm / PKGBUILD
blob8a922f80c9d9a4eaf2e12e708b496eb2b1dcfd7f
1 # Based on extra/trayer
3 pkgname=trayer-dwm
4 _pkgname=trayer
5 pkgver=1.0
6 pkgrel=1
7 pkgdesc="A lightweight GTK2-based systray, for DWM"
8 arch=('i686' 'x86_64')
9 url="https://gna.org/projects/fvwm-crystal/"
10 license=('GPL' 'MIT')
11 depends=('gtk2')
12 makedepends=('libxmu')
13 provides=('trayer')
14 conflicts=('trayer')
15 options=('!makeflags')
16 source=("http://download.gna.org/fvwm-crystal/trayer/${pkgver}/${_pkgname}-${pkgver}.tar.gz"
17         'trayer.diff' 'manpage.diff' 'dwm.diff')
18 md5sums=('e1b0b6464f991f2c296561e377585867'
19          '7f66eee885563871f9f76646bca6b14d'
20          '3f1c92bbe275f186b613c04a47e8e977'
21          '501303702b13c53da4c3fb5fbd837aeb')
23 build() {
24   cd "${srcdir}/${_pkgname}-${pkgver}"
25   patch -p0 -i "$srcdir/trayer.diff"
26   patch -p1 -i "$srcdir/manpage.diff"
27   patch -p1 -i "$srcdir/dwm.diff"
28   sed -i 's/$(LIBS) $(OBJ) $(SYSTRAYOBJ)/$(OBJ) $(SYSTRAYOBJ) $(LIBS)/' Makefile
29   sed -i 's/-lXmu/-lXmu -lX11/' Makefile.common
30   make CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
33 package() {
34   cd "${srcdir}/${_pkgname}-${pkgver}"
35   make PREFIX="${pkgdir}/usr" install
36   install -D -m644 trayer.1 "${pkgdir}/usr/share/man/man1/trayer.1"
37   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"