summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 319c0c2afb399324b49ff2791c18acb6a65f0ed1 (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
# Maintainer:  <none>
# Contributor: dreieck      (https://aur.archlinux.org/account/dreieck)
# Contributor: Roman Beslik (https://aur.archlinux.org/account/beroal)

_gitname='x11-bell-gst'
pkgname="${_gitname}-git"
pkgver=r2.27459b6
pkgrel=2
pkgdesc="It connects to a X11 server and plays SOUND_FILE by GStreamer when the XkbBellNotify event occurs."
arch=('i686' 'x86_64')
url="https://github.com/beroal/x11-bell-gst"
license=('BSD')
makedepends=('git')
depends=('gstreamer>=1' 'libxcb')
provides=('x11-bell-gst')
conflicts=('x11-bell-gst')
source=("${_gitname}::git+https://github.com/beroal/x11-bell-gst.git")
md5sums=('SKIP')

_gitname=x11-bell-gst

pkgver() {
	cd "${srcdir}/${_gitname}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "${srcdir}/${_gitname}"
	gcc $(pkg-config --cflags --libs "gstreamer-1.0 >= 1") $(pkg-config --cflags --libs "xcb-xkb >= 1") -o ${_gitname} bell.c
}

package() {
	cd "${srcdir}/${_gitname}"
	install -D -m755 ${_gitname} "${pkgdir}/usr/bin/${_gitname}"
	install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}