Created
December 11, 2017 20:43
-
-
Save Whisprin/6c372fa51187d0c369ad846fab92b2dd to your computer and use it in GitHub Desktop.
lirc 0.10.1 PKGBUILD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Lukas Fleischer <lfleischer@archlinux.org> | |
# Contributor: Paul Mattal <paul@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') | |
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.logrotate | |
lirc.tmpfiles) | |
sha1sums=('SKIP' | |
'4342b004eb53d51fcbb9af2cf136bb4990874608' | |
'5cd3f206e6e60632d9bea2ce9d22dbe5283eb129') | |
build() { | |
cd "${srcdir}/lirc-${_pkgver}" | |
# patch a type mismatch | |
sed -i -e 's/GETGROUPS_T,\[int/GETGROUPS_T,\[gid_t/g' configure.ac | |
./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/} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment