summaryrefslogtreecommitdiffstats
path: root/arch/3.5.13/trinity-base/hal/PKGBUILD
blob: 8408f8c3e4a4a44d9dd1a7951e9174d67956cb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# Maintainer: Pawel "l0ner" Soltys <[email protected]>
# Contributor: Jan de Groot <[email protected]>
# Contributor: Link Dupont <[email protected]>
# Contributor: Calvin Morisson <[email protected]>

pkgname=hal
pkgver=0.5.14
pkgrel=7
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' 'udev>=146' 'filesystem>=0.7.1-5' 'hal-info>=0.20090716' 'eject' 'dmidecode' 'pciutils>=3.0.2' 'usbutils>=0.73-5' 'pm-utils>=1.2.5' 'consolekit>=0.4.1' 'util-linux-ng>=2.16' 'v4l-utils')
makedepends=('pkgconfig' 'gperf')
options=('!libtool' '!makeflags')
install=hal.install
source=(http://hal.freedesktop.org/releases/${pkgname}-${pkgver}.tar.gz
         hald
         hal.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'
         '185dd5d6ffc703ec8395b4eb3a1ae498')
#         '4d4b6801a1cedca22b8bdd9db73b16fb'
#         '6d87c3e63184ae3a69caafc846f538a3'
#         '6507e5091ee2d11a87ae738a8e2caecb'
#         '1171c2d83b76059f2da7a3538e08fa4e'
#         '52bd305299aa22ae07f1a862c22d30fa'
#         '3f11234fb5e5044fbfc5199ec65b182c'
#         'da088f12cfc2d190bbf95b747e19ab9e'
#         '634f4ec2203eff7de8fa2ed2c6b9cbe0'
#         'f8c9b3a40d03907b498feef571d42466'
#         '0575677614db0632b17b1a719798c7e0'
#         '46a5db3ff896ee37762aa8d7e70942c4'
#         '17bc2b911f245cef4a1d98769d5c4d14'

build() {
   cd $srcdir
  patch -Np1 -d ${srcdir} < hal.patch
  cd "${srcdir}/${pkgname}-${pkgver}"
#  patch -Np1 -i "${srcdir}/hal-0.5.9-hide-diagnostic.patch"
#  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
  autoconf
  automake

  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
      --libexecdir=/usr/lib/hal --with-udev-prefix=/etc \
      --enable-static=no --disable-acpi-ibm \
      --disable-docbook-docs --disable-console-kit \
      --disable-policy-kit --disable-acl-management \
      --enable-umount-helper --disable-smbios \
      --with-hal-user=hal --with-hal-group=hal \
      --with-pid-file=/var/run/hald.pid \
      --disable-gtk-doc
  make

}

package() {
  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/"

  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"
  
  # Fix udev rule location
  install -d -m755 "${pkgdir}/lib"
  mv "${pkgdir}/etc/udev" "${pkgdir}/lib/"
}