summaryrefslogtreecommitdiff
path: root/community/ozerocdoff/PKGBUILD
blob: 309d9d413a424724265737ef8bc936ba7f3cf34d (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
# $Id: PKGBUILD 69167 2012-04-09 22:11:35Z spupykin $
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>

pkgname=ozerocdoff
pkgver=2
pkgrel=7
pkgdesc="Userspace driver for Option High Speed Mobile Devices"
arch=('i686' 'x86_64')
url="http://www.pharscape.org/ozerocdoff.html"
depends=('bash' 'libusb-compat')
license=('GPL2')
options=('!emptydirs')
source=(udev.tar.gz::"http://www.pharscape.org/forum/index.php?action=dlattach;topic=545.0;attach=4"
	"remove-old-rules.patch")
md5sums=('88a78f9380d9591f8d20a657b72e3e5c'
         '28ed1afd16fdec92de3baf66b32b0b12')

build() {
  cd "${srcdir}/udev"
  make clean
  patch -p1 <$srcdir/remove-old-rules.patch
  make
}

package() {
  cd "${srcdir}/udev"
  make DESTDIR="${pkgdir}" install
  rm -rf $pkgdir/usr/lib/hal
  rm -rf $pkgdir/usr/share/hal
  mkdir -p $pkgdir/usr/lib
  mv $pkgdir/etc/udev $pkgdir/usr/lib
}