blob: 113a2466a4d014533caa320fd16a67eff68d3d74 (
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
62
63
|
# Contributor: Army
# Maintainer: Moritz Maxeiner <moritz@ucworks.org>
# Co-Maintainer: Stefan-Husmann@t-online.de
pkgname=dunst-git
_gitname=dunst
pkgver=1.1.0.178.g4df1a4b.783
pkgrel=1
pkgdesc="a lightweight notification-daemon - git version"
arch=('i686' 'x86_64')
url="https://dunst-project.org/"
license=('BSD')
depends=('libxinerama' 'libxss' 'pango' 'libnotify' 'gtk2')
if [ ! -e ${SRCDEST}/config.h ]; then
depends+=('libxdg-basedir')
fi
makedepends=('git' 'perl')
provides=("dunst" 'notification-daemon')
conflicts=("dunst")
source=('git+https://github.com/dunst-project/dunst')
md5sums=('SKIP')
options=('!makeflags')
pkgver() {
cd ${srcdir}/${_gitname}
echo $(git describe --tags | sed 's+v++g'|sed 's+-+.+g').$(git rev-list --count HEAD)
}
prepare() {
cd ${srcdir}/${_gitname}
[ -f $srcdir/${_gitname}/config.h ] && rm $srcdir/${_gitname}/config.h
if [ -e ${srcdir}/config.h ]; then
msg "Using custom config.h"
cp ${srcdir}/config.h .
touch config.h
fi
sed 's+##PREFIX##+/usr+' contrib/dunst.systemd.service.in > contrib/dunst.systemd.service
}
build() {
cd ${srcdir}/${_gitname}
if [ -e ${SRCDEST}/config.h ]; then
CFLAGS=-DSTATIC_CONFIG make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
CFLAGS=-DSTATIC_CONFIG make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 dunstify
else
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11
make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 dunstify
fi
}
package() {
cd ${srcdir}/${_gitname}
if [ -e ${SRCDEST}/config.h ]; then
CFLAGS=-DSTATIC_CONFIG make DESTDIR="${pkgdir}" PREFIX=/usr install
else
make DESTDIR="${pkgdir}" PREFIX=/usr install
fi
install -Dm755 dunstify "${pkgdir}"/usr/bin/dunstify
install -Dm755 contrib/dunst_espeak.sh "${pkgdir}"/usr/bin/dunst_espeak.sh
install -Dm644 contrib/dunst.systemd.service \
"${pkgdir}"/usr/lib/systemd/user/dunst.systemd.service
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
|