summaryrefslogtreecommitdiffstats
path: root/abs/extra/sapphire/PKGBUILD
blob: c82d2ab7ac37fff2134664ad640bd2a5bb41a8d1 (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
# Maintainer: Cecil Watson<knoppmyth@gmail.com>

pkgname=sapphire
_kernver=`uname -r`
pkgver=3.5
pkgrel=1
pkgdesc="Kernel module for Sapphire remote"
arch=('i686' 'x86_64')
url="http://rtr.ca/sapphire_remote"
license=('GPL2')
depends=('kernel26')
makedepends=('kernel26-headers')
options=(!makeflags docs)
install=sapphire.install
source=(http://rtr.ca/sapphire_remote/${pkgname}-${pkgver}.tar.gz sapphire.patch)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  patch -p1 < ../sapphire.patch
}

package() {
  mkdir -p ${pkgdir}/etc/modprobe.d
  mkdir -p ${pkgdir}/usr/bin
  mkdir -p ${pkgdir}/usr/share/doc/sapphire
  cd "${srcdir}/${pkgname}-${pkgver}"
  make INSTALL_MOD_PATH=${pkgdir} DESTDIR="${pkgdir}" install
  install -m 755 sapphire_keymap.sh ${pkgdir}/usr/bin
  install -m 644 README.txt ${pkgdir}/usr/share/doc/sapphire
  install -m 644 keymap.default ${pkgdir}/usr/share/doc/sapphire
  rm -fr ${pkgdir}/lib/modules/$_kernver/modules*
}
md5sums=('b1c97f4328810f2dfbd6d8721d5950c5'
         '90fcf01a3b96eb49a69d20bca74167a2')