pkgname="linhes-udev-rules"
pkgver=8
pkgrel=4
arch=(i686 x86_64)
license=('GPL')
groups=('base')
# older initscripts versions required start_udev
options=(!makeflags !libtool)
makedepends=()
source=(
    81-CD_DVD_symlinks.rules
	81-OSS_Emulation.rules
	81-dvicoIR.rules
	81-remote.rules
	81-SoundGraph_LCD.rules
	81-SoundGraph.rules
    cdsymlinks.sh)
    #75-cd-aliases-generator.rules
    #rule_generator.functions
    #write_cd_rules)


package() {
  cd $srcdir
  # Install our rule for permissions and symlinks
  #install -D -m644 $srcdir/81-arch.rules $pkgdir/usr/lib/udev/rules.d/81-arch.rules

  # Install OSS Emulation rules
  install -D -m644 $srcdir/81-OSS_Emulation.rules $pkgdir/usr/lib/udev/rules.d/81-OSS_Emulation.rules
  # Install dvicoIR rules
  install -D -m644 $srcdir/81-dvicoIR.rules $pkgdir/usr/lib/udev/rules.d/81-dvicoIR.rules
  install -D -m644 $srcdir/81-remote.rules $pkgdir/usr/lib/udev/rules.d/81-remote.rules
  # Install CD/DVD symlink rules
  install -D -m644 $srcdir/81-CD_DVD_symlinks.rules  $pkgdir/usr/lib/udev/rules.d/81-CD_DVD_symlinks.rules
  #install -D -m644 $srcdir/75-cd-aliases-generator.rules $pkgdir/usr/lib/udev/rules.d/75-cd-aliases-generator.rules
  # Install SoundGraph LCD rules
  install -D -m644 $srcdir/81-SoundGraph_LCD.rules $pkgdir/usr/lib/udev/rules.d/81-SoundGraph_LCD.rules
  # Install SoundGraph rules
  install -D -m644 $srcdir/81-SoundGraph.rules $pkgdir/usr/lib/udev/rules.d/81-SoundGraph.rules
  # install cdsymlinks.sh
  install -D -m755 $srcdir/cdsymlinks.sh $pkgdir/usr/lib/udev/cdsymlinks.sh

 #taken from suse
  #install -D -m755 $srcdir/write_cd_rules $pkgdir/usr/lib/udev/write_cd_rules
  #install -D -m755 $srcdir/rule_generator.functions $pkgdir/usr/lib/udev/rule_generator.functions

}

md5sums=('48845542d8250d6f2eddf07944f78014'
         '18170020347b181b155ff5a1a8a904b4'
         '85798a6599d4b24b68600c5f1d1f223b'
         '67ad9ed0764a48dde3c0247a6bcafc02'
         '5401def23fae53db3c94e39eb2debfb4'
         '01eeeb532e1c82a12905c67814c1dde2'
         '2e808ee78d237c478b57af2a68d43769')