diff options
author | Brian Bidulock | 2014-08-28 06:11:21 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-07-10 20:56:42 -0600 |
commit | ef89160506dca82f982801f7660aa709a215c2d7 (patch) | |
tree | d93c96e04df16fd68321e70a1bb50dabd6e98002 /PKGBUILD | |
parent | 1be6781fb43c6163d07d0a6a825afda2f73b7810 (diff) | |
download | aur-ef89160506dca82f982801f7660aa709a215c2d7.tar.gz |
version 0.5.14-21
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 114 |
1 files changed, 26 insertions, 88 deletions
@@ -1,91 +1,56 @@ -# Maintainer: Rohit Manokaran <rohitmanokaran@yahoo.com> +# Maintainer: Rohit Manokaran <rohit000@live.com> +# Contributor: James An <james@jamesan.ca> +# Contributor: Rohit Manokaran <rohitmanokaran@yahoo.com> # Contributor: Pawel "l0ner" Soltys <pwslts@gmail.com> # Contributor: Jan de Groot <jgc@archlinux.org> # Contributor: Link Dupont <link@subpop.net> # Contributor: Calvin Morisson <mutantturkey@gmail.com> +# Contributor: deusstultus <deusstultus@gmail.com> pkgname=hal pkgver=0.5.14 -pkgrel=19 +pkgrel=21 pkgdesc="Hardware Abstraction Layer" arch=(i686 x86_64) license=('GPL' 'custom') url="http://www.freedesktop.org/wiki/Software/hal" -depends=('dbus-glib>=0.82' 'libusb-compat' 'systemd>=189' 'filesystem>=2012' 'hal-info>=0.20090716' 'dmidecode' 'pciutils>=3.0.2' 'usbutils>=006' 'util-linux>=2.24' 'v4l-utils') -optdepends=('pm-utils>=1.2.5: suspend, shutdown, reboot functions') -makedepends=('pkg-config' 'gperf' 'libtool') +depends=('dbus-glib>=0.82' 'libusb-compat' 'hal-info>=0.20090716' 'dmidecode' 'v4l-utils') +optdepends=('acpid>=2.0' 'pm-utils>=1.2.5') +makedepends=('gperf') options=('!libtool' '!makeflags') install=hal.install source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz hald + hal.service hal.patch udev-update.patch hal-glib-2.3-compile-fix.patch hal-libudev-events.patch badvok-compile-fix.patch) -# patches/hal-0.5.9-hide-diagnostic.patch -# patches/hal-remove-dell-killswitch.patch -# patches/hal-KVM-evdev.patch -# patches/hal-HDAPS-blacklist.patch -# patches/hal-xen-unignore-axes.patch -# patches/hal-use-at-console.patch -# patches/fix-libusb-detection.patch -# patches/dbus-error-init.patch -# patches/path-max.patch -# patches/handle-input-touchpad.patch -# patches/macbook-fix-ioperm.patch -# patches/hal-ignore-internal-dm-devices.patch md5sums=('e9163df591a6f38f59fdbfe33e73bf20' '4cdfc673ad65ddb51919f5a757f62145' + 'ca4a7932fe7e8acbfa17245b62cc3b9b' '9285ba215509584baaa9e1b573c89416' '68209ba62b2a19537bfa459fdef70ed3' 'c126a66766118f83a171511832d1b619' 'd115a2f1793121b08dd58527c1530d0b' - '7acfdd590c98272930ddfd37f1c7f5a3' - ) -# '4d4b6801a1cedca22b8bdd9db73b16fb' -# '6d87c3e63184ae3a69caafc846f538a3' -# '6507e5091ee2d11a87ae738a8e2caecb' -# '1171c2d83b76059f2da7a3538e08fa4e' -# '52bd305299aa22ae07f1a862c22d30fa' -# '3f11234fb5e5044fbfc5199ec65b182c' -# 'da088f12cfc2d190bbf95b747e19ab9e' -# '634f4ec2203eff7de8fa2ed2c6b9cbe0' -# 'f8c9b3a40d03907b498feef571d42466' -# '0575677614db0632b17b1a719798c7e0' -# '46a5db3ff896ee37762aa8d7e70942c4' -# '17bc2b911f245cef4a1d98769d5c4d14' + '7acfdd590c98272930ddfd37f1c7f5a3') build() { - - cd $srcdir - patch -Np1 -d ${srcdir} < hal.patch - cd "${srcdir}/${pkgname}-${pkgver}" - patch -Np1 -i "${srcdir}/hal-libudev-events.patch" - patch -Np1 -i "${srcdir}/hal-glib-2.3-compile-fix.patch" - patch -Np1 -i "${srcdir}/udev-update.patch" - patch -Np1 -i "${srcdir}/badvok-compile-fix.patch" + patch -Np1 -d ${srcdir} -i ${srcdir}/hal.patch + + patch -Np1 -i ${srcdir}/hal-libudev-events.patch + patch -Np1 -i ${srcdir}/hal-glib-2.3-compile-fix.patch + patch -Np1 -i ${srcdir}/udev-update.patch + patch -Np1 -i ${srcdir}/badvok-compile-fix.patch # fix trialing space sed -i 's/failed; [\] /failed; \\/' policy/Makefile.am # fix subdir-objects mess in automake 1.14 sed -i 's/AM_INIT_AUTOMAKE[(]\[gnu 1.9\][)]/AM_INIT_AUTOMAKE([subdir-objects])/' configure.in -# sed -i 's/AC_DEFUN[(]\[AM_INIT_AUTOMAKE\]/AC_DEFUN([AM_INIT_AUTOMAKE([subdir-objects])]/' aclocal.m4 - -# patch -Np1 -i "${srcdir}/hal-remove-dell-killswitch.patch" -# patch -Np1 -i "${srcdir}/hal-KVM-evdev.patch" -# patch -Np1 -i "${srcdir}/hal-HDAPS-blacklist.patch" -# patch -Np1 -i "${srcdir}/hal-xen-unignore-axes.patch" -# patch -Np1 -i "${srcdir}/hal-use-at-console.patch" -# patch -Np1 -i "${srcdir}/fix-libusb-detection.patch" -# patch -Np1 -i "${srcdir}/dbus-error-init.patch" -# patch -Np1 -i "${srcdir}/path-max.patch" -# patch -Np1 -i "${srcdir}/handle-input-touchpad.patch" -# patch -Np1 -i "${srcdir}/macbook-fix-ioperm.patch" -# patch -Np1 -i "${srcdir}/hal-ignore-internal-dm-devices.patch" libtoolize --force aclocal @@ -107,57 +72,30 @@ build() { } package() { - cd $srcdir/${pkgname}-${pkgver} + cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install -# install -m755 -d "${pkgdir}/etc/rc.d" - install -m755 -d "${pkgdir}/media" -# install -m755 "${srcdir}/hald" "${pkgdir}/etc/rc.d/hal" - install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" + install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" # These empty directories are required by hal to successfuly create its fdi-cache - install -m755 -d "${pkgdir}/etc/hal/fdi/policy" - install -m755 -d "${pkgdir}/etc/hal/fdi/preprobe" - install -m755 -d "${pkgdir}/etc/hal/fdi/information" + install -m755 -d "${pkgdir}/etc/hal/fdi/"{policy,preprobe,information} # udev-sockets support has been removed from udev. hal-libudev-events.patch fixes hal to get events from libudev - rm "${pkgdir}/etc/udev/rules.d/90-hal.rules" - rmdir "${pkgdir}/etc/udev/rules.d" - rmdir "${pkgdir}/etc/udev" + rm -r "${pkgdir}/etc/udev" - # move umount.hal from non-standard /sbin to /usr/sbin + # move umount.hal from non-standard /sbin to /usr/bin if test -e "${pkgdir}/sbin/umount.hal"; then - install -m755 -d "${pkgdir}/usr/sbin" - mv "${pkgdir}/sbin/umount.hal" "${pkgdir}/usr/sbin/umount.hal" + install -m755 -d "${pkgdir}/usr/bin" + mv "${pkgdir}/sbin/umount.hal" "${pkgdir}/usr/bin/umount.hal" rmdir "${pkgdir}/sbin" fi # create systemd service files - install -m755 -d "${pkgdir}/usr/lib/systemd/system" - cat >${pkgdir}/usr/lib/systemd/system/hal.service <<EOF -[Unit] -Description=Hardware Abstraction Layer -Requires=dbus.service -Wants=acpid.service -After=dbus.service syslog.target acpid.service - -[Service] -Type=oneshot -ExecStart=/usr/bin/hald --daemon=yes --use-syslog -RemainAfterExit=yes - -[Install] -WantedBy=multi-user.target -EOF + install -Dm644 ../hal.service "${pkgdir}/usr/lib/systemd/system/hal.service" # These dirs dont appear to be used. If they are needed we need to add systemd tmpfile to create them - rmdir "${pkgdir}/var/run/hald/hald-local" - rmdir "${pkgdir}/var/run/hald/hald-runner" - rmdir "${pkgdir}/var/run/hald" + rm -r "${pkgdir}/var/run" # Change ownership from hal:hal to root [namcap error] chown root:root "${pkgdir}/var/cache/hald" } - - |