1 # Based on extra/trayer
7 pkgdesc="A lightweight GTK2-based systray, for DWM"
9 url="https://gna.org/projects/fvwm-crystal/"
12 makedepends=('libxmu')
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')
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}"
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"