summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1398004815508cbd333f2a73a4fb1b82e4b4dde1 (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
# Maintainer: Tomas Jasek<tomsik68(at)gmail(dot)com>
# Contributor: Hamza Alloush<hamzaalloush(at)live(dot)com>
# Contributor: Eugen Dahm <eugen.dahm(at)gmail(dot)com>


# due to stupid naming conventions of the source package
_zippkgname=Linux_PCE_N53_1008
_srctarname=DPO_GPL_RT5592STA_LinuxSTA_v2.6.0.0_20120326.tar.bz2

# name of the base package
_pkgbase=rt5592sta
pkgname=rt5592sta_linux_patched-dkms
pkgver=2.6.0.0
pkgrel=7
pkgdesc="DKMS module which contains linux device driver for the Ralink RT2860 ABGN WLAN Card. It's based on halou89's rt5592sta_linux_patched package."
arch=('i686' 'x86_64')
url="http://asus.com"
license=('GPL')
depends=('dkms' 'make' 'linux-headers' )
depends_x86_64=('lib32-glibc')
depends_i686=('glibc')
makedepends=('git')
conflicts=("rt5592sta_linux" "rt5592sta_linux_patched" "rt5592sta_linux_patched-dkms")
optdepends=()
options=()
changelog=
source=("asus-pce-n53-linux::git+https://github.com/lesf0/asus-pce-n53-linux.git"
	'dkms.conf'
)
sha1sums=('SKIP'
          'f214e701536900681df50d38308e8d4084230478')

package() {
  msg2 "Installing DKMS module..."
  installDir="$pkgdir/usr/src/$pkgname-$pkgver"
       
       
  install -dm755 "$installDir"
  # Copy dkms.conf
  msg2 "Copying dkms.conf..."

  install -m644 "${srcdir}/dkms.conf" "$installDir"

  # Set name and version in dkms.conf
  msg2 "Configuring dkms.conf..."
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "$installDir/dkms.conf"
  msg2 "Copying sources..."
  # Copy sources
  cd "${srcdir}/asus-pce-n53-linux/"
  for d in `find . -type d | grep -v '.git'`
  do
    install -dm755 "$installDir/$d"
  done
  for f in `find . -type f | grep -v '.git' | grep -v Quick`
  do
	install -m644 "$(pwd)/$f" "$installDir/$f"
  done
  msg2 "Installing RT2860STA.dat"
  install -dm755 "${pkgdir}/etc/Wireless/RT2860STA"
  install -m644 "$(pwd)/RT2860STA.dat" "${pkgdir}/etc/Wireless/RT2860STA/RT2860STA.dat"
  install=${pkgname}.install
}

# vim:set ts=2 sw=2 et: