[arch-commits] Commit in lirc/repos (5 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 04:08:19 UTC 2019
Date: Saturday, October 26, 2019 @ 04:08:18
Author: felixonmars
Revision: 365753
archrelease: copy trunk to staging-x86_64
Added:
lirc/repos/staging-x86_64/
lirc/repos/staging-x86_64/PKGBUILD
(from rev 365752, lirc/trunk/PKGBUILD)
lirc/repos/staging-x86_64/lirc-0.10-build-fix.patch
(from rev 365752, lirc/trunk/lirc-0.10-build-fix.patch)
lirc/repos/staging-x86_64/lirc.logrotate
(from rev 365752, lirc/trunk/lirc.logrotate)
lirc/repos/staging-x86_64/lirc.tmpfiles
(from rev 365752, lirc/trunk/lirc.tmpfiles)
---------------------------+
PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++++++++
lirc-0.10-build-fix.patch | 30 ++++++++++++++++++++++++
lirc.logrotate | 5 ++++
lirc.tmpfiles | 1
4 files changed, 91 insertions(+)
Copied: lirc/repos/staging-x86_64/PKGBUILD (from rev 365752, lirc/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-26 04:08:18 UTC (rev 365753)
@@ -0,0 +1,55 @@
+# Maintainer: Lukas Fleischer <lfleischer at archlinux.org>
+# Contributor: Paul Mattal <paul at archlinux.org>
+
+pkgname=lirc
+_pkgver=0.10.1
+[[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || pkgver="$_pkgver"
+pkgrel=3
+epoch=1
+pkgdesc="Linux Infrared Remote Control utilities"
+arch=('x86_64')
+url="https://www.lirc.org/"
+license=('GPL')
+depends=('alsa-lib' 'libx11' 'libftdi' 'libusb-compat')
+makedepends=('help2man' 'alsa-lib' 'libx11' 'libxslt' 'python' 'python-setuptools')
+optdepends=('python: for lirc-setup, irdb-get and pronto2lirc')
+provides=('lirc-utils')
+conflicts=('lirc-utils')
+replaces=('lirc-utils')
+backup=('etc/lirc/lirc_options.conf' 'etc/lirc/lircd.conf' 'etc/lirc/lircmd.conf')
+source=("https://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${_pkgver}.tar.bz2"
+ lirc-0.10-build-fix.patch
+ lirc.logrotate
+ lirc.tmpfiles)
+sha1sums=('9d6f6d18ac566a96ef4ca1d6909a4e8bc517d48a'
+ '952ce902c94d822b0113d8e74bc6fda6a551ad7e'
+ '4342b004eb53d51fcbb9af2cf136bb4990874608'
+ '5cd3f206e6e60632d9bea2ce9d22dbe5283eb129')
+
+prepare() {
+ cd "${srcdir}/lirc-${_pkgver}"
+
+ patch -p1 -i ../lirc-0.10-build-fix.patch
+
+ autoreconf -fi
+ automake -ac
+}
+
+build() {
+ cd "${srcdir}/lirc-${_pkgver}"
+
+ HAVE_UINPUT=1 ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc --localstatedir=/var
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package() {
+ cd "${srcdir}/lirc-${_pkgver}"
+
+ make DESTDIR="${pkgdir}" -j1 install
+
+ install -Dm644 "${srcdir}"/lirc.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/lirc.conf
+ install -Dm644 "${srcdir}"/lirc.logrotate "${pkgdir}"/etc/logrotate.d/lirc
+
+ rmdir "${pkgdir}"/var/{run/lirc/,run/}
+}
Copied: lirc/repos/staging-x86_64/lirc-0.10-build-fix.patch (from rev 365752, lirc/trunk/lirc-0.10-build-fix.patch)
===================================================================
--- staging-x86_64/lirc-0.10-build-fix.patch (rev 0)
+++ staging-x86_64/lirc-0.10-build-fix.patch 2019-10-26 04:08:18 UTC (rev 365753)
@@ -0,0 +1,30 @@
+diff --git a/configure.ac b/configure.ac
+index 58347d8..8c7fca2 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -77,15 +77,10 @@ AC_TYPE_UINT64_T
+
+ dnl AC_TYPE_GETGROUPS seems broken on recent MacOS, so:
+ AC_MSG_CHECKING([Figure out if getgrouplist() needs gid_t or int])
+-oldcflags="$CFLAGS"
+-export CFLAGS=-Werror
+ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
+ #include <unistd.h>
+-#include <grp.h>
+- ]], [[
+-gid_t groups[32]; int ngroups; const char* user = "root";
+-getgrouplist(user, 1, groups, &ngroups);
+- ]])],[
++int getgroups(int gidsetsize, gid_t grouplist[]);
++ ]], [[ ]])],[
+ AC_MSG_RESULT(gid_t)
+ AC_DEFINE(GETGROUPS_T,[gid_t])
+ ],[
+@@ -93,7 +88,6 @@ getgrouplist(user, 1, groups, &ngroups);
+ AC_DEFINE(GETGROUPS_T,[int])
+ ]
+ )
+-export CFLAGS="$oldcflags"
+
+ dnl Checks for library functions.
+ AC_CHECK_FUNCS(gethostname gettimeofday mkfifo select socket strdup \
Copied: lirc/repos/staging-x86_64/lirc.logrotate (from rev 365752, lirc/trunk/lirc.logrotate)
===================================================================
--- staging-x86_64/lirc.logrotate (rev 0)
+++ staging-x86_64/lirc.logrotate 2019-10-26 04:08:18 UTC (rev 365753)
@@ -0,0 +1,5 @@
+/var/log/lircd {
+ missingok
+ notifempty
+ delaycompress
+}
Copied: lirc/repos/staging-x86_64/lirc.tmpfiles (from rev 365752, lirc/trunk/lirc.tmpfiles)
===================================================================
--- staging-x86_64/lirc.tmpfiles (rev 0)
+++ staging-x86_64/lirc.tmpfiles 2019-10-26 04:08:18 UTC (rev 365753)
@@ -0,0 +1 @@
+d /run/lirc 0755 root root -
More information about the arch-commits
mailing list