diff options
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | lightum-git.diff | 14 |
2 files changed, 17 insertions, 1 deletions
@@ -4,6 +4,7 @@ pkgver=2.3.1 pkgrel=1 pkgdesc="Lightum is a daemon to control the keyboard brightness and screen backlight on MacBook based laptops." arch=(i386 x86_64) +depends=(dbus glib2 libsystemd libx11 libxext libxss glibc) url="https://github.com/poliva/lightum" license=('GPL2') md5sums=(SKIP) @@ -16,6 +17,7 @@ pkgver() { prepare() { cd "$pkgname" + patch -p1 -i ../../lightum-git.diff } build() { @@ -31,4 +33,4 @@ check() { package() { cd "$pkgname" make DESTDIR="$pkgdir/" install -} +}
\ No newline at end of file diff --git a/lightum-git.diff b/lightum-git.diff new file mode 100644 index 000000000000..8507f9746fca --- /dev/null +++ b/lightum-git.diff @@ -0,0 +1,14 @@ +diff -Naur lightum-git.orig/Makefile lightum-git/Makefile +--- lightum-git.orig/Makefile 2016-12-20 20:20:00.987080212 +0100 ++++ lightum-git/Makefile 2016-12-20 20:15:15.122803110 +0100 +@@ -2,8 +2,8 @@ + SHELL = /bin/sh + CC?=gcc + CDEBUGFLAGS= -g -O2 +-CFLAGS = `pkg-config --cflags dbus-1 --cflags glib-2.0 --cflags gio-2.0 --cflags libsystemd-login` -Wall -Wextra -Wwrite-strings $(CDEBUGFLAGS) +-LDFLAGS= `pkg-config --libs dbus-1 --libs glib-2.0 --libs gio-2.0 --libs libsystemd-login` $(CDEBUGFLAGS) -lX11 -lXext -lXss -lm ++CFLAGS = `pkg-config --cflags dbus-1 --cflags glib-2.0 --cflags gio-2.0 --cflags libsystemd` -Wall -Wextra -Wwrite-strings $(CDEBUGFLAGS) ++LDFLAGS= `pkg-config --libs dbus-1 --libs glib-2.0 --libs gio-2.0 --libs libsystemd` $(CDEBUGFLAGS) -lX11 -lXext -lXss -lm + INSTALL = /usr/bin/install -c + INSTALLDATA = /usr/bin/install -c -m 644 + |