Date: Wednesday, April 4, 2018 @ 16:04:52
  Author: lfleischer
Revision: 320938

archrelease: copy trunk to testing-x86_64

Added:
  lirc/repos/testing-x86_64/
  lirc/repos/testing-x86_64/PKGBUILD
    (from rev 320937, lirc/trunk/PKGBUILD)
  lirc/repos/testing-x86_64/lirc-0.10-build-fix.patch
    (from rev 320937, lirc/trunk/lirc-0.10-build-fix.patch)
  lirc/repos/testing-x86_64/lirc.logrotate
    (from rev 320937, lirc/trunk/lirc.logrotate)
  lirc/repos/testing-x86_64/lirc.tmpfiles
    (from rev 320937, 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/testing-x86_64/PKGBUILD (from rev 320937, 
lirc/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2018-04-04 16:04:52 UTC (rev 320938)
@@ -0,0 +1,55 @@
+# Maintainer: Lukas Fleischer <lfleisc...@archlinux.org>
+# Contributor: Paul Mattal <p...@archlinux.org>
+
+pkgname=lirc
+_pkgver=0.10.1
+[[ $_pkgver =~ [a-z]$ ]] && pkgver="${_pkgver:0:-1}.${_pkgver: -1}" || 
pkgver="$_pkgver"
+pkgrel=1
+epoch=1
+pkgdesc="Linux Infrared Remote Control utilities"
+arch=('x86_64')
+url="http://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=("http://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/testing-x86_64/lirc-0.10-build-fix.patch (from rev 320937, 
lirc/trunk/lirc-0.10-build-fix.patch)
===================================================================
--- testing-x86_64/lirc-0.10-build-fix.patch                            (rev 0)
+++ testing-x86_64/lirc-0.10-build-fix.patch    2018-04-04 16:04:52 UTC (rev 
320938)
@@ -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/testing-x86_64/lirc.logrotate (from rev 320937, 
lirc/trunk/lirc.logrotate)
===================================================================
--- testing-x86_64/lirc.logrotate                               (rev 0)
+++ testing-x86_64/lirc.logrotate       2018-04-04 16:04:52 UTC (rev 320938)
@@ -0,0 +1,5 @@
+/var/log/lircd {
+   missingok
+   notifempty
+   delaycompress
+}

Copied: lirc/repos/testing-x86_64/lirc.tmpfiles (from rev 320937, 
lirc/trunk/lirc.tmpfiles)
===================================================================
--- testing-x86_64/lirc.tmpfiles                                (rev 0)
+++ testing-x86_64/lirc.tmpfiles        2018-04-04 16:04:52 UTC (rev 320938)
@@ -0,0 +1 @@
+d /run/lirc 0755 root root -

Reply via email to