mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
ec89a35b5d
Fixes build failure on kernel 3.14 caused by kernel data structure change into an actual C struct. It also uses the new v3.0.0.4 upstream sources. The source.tar.bz2 has been rehosted on github.io.
45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
pkgname=dkms-mt7601
|
|
pkgver=v3.0.0.4
|
|
pkgrel=1
|
|
pkgdesc="Driver for Ralink MT7601 chipset wireless adaptors"
|
|
arch=('arm' 'armv7h')
|
|
url="http://www.ralinktech.com"
|
|
license=('GPL')
|
|
depends=('dkms' 'linux-headers')
|
|
conflicts=()
|
|
install=${pkgname}.install
|
|
options=(!strip)
|
|
_pkgname="mt7601"
|
|
source=("https://ddaygold.github.io/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913.pfc.tar.bz2"
|
|
"dkms.conf")
|
|
|
|
md5sums=('f7984ea77c465a01e89453a8b60f9e4f'
|
|
'f07b4518d0f1190e0c72230137afadb4')
|
|
|
|
package() {
|
|
|
|
# Change src dir name
|
|
mv ${srcdir}/DPO_MT7601U_LinuxSTA_3.0.0.4_20130913 ${srcdir}/$_pkgname-$pkgver
|
|
|
|
# Copy Makefile to subdir (because symbolic link is not copied for some reason)
|
|
#rm ${srcdir}/$_pkgname-$pkgver/UTIL/Makefile
|
|
#cp ${srcdir}/$_pkgname-$pkgver/Makefile.inc ${srcdir}/$_pkgname-$pkgver/UTIL/Makefile
|
|
|
|
installDir="$pkgdir/usr/src/$_pkgname-$pkgver"
|
|
|
|
install -dm755 "$installDir"
|
|
install -m644 "$srcdir/dkms.conf" "$installDir"
|
|
install -dm755 "$pkgdir/etc/modprobe.d"
|
|
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/"
|
|
|
|
for d in `find . -type d`
|
|
do
|
|
install -dm755 "$installDir/$d"
|
|
done
|
|
|
|
for f in `find . -type f -o -type l`
|
|
do
|
|
install -m644 "${srcdir}/${_pkgname}-${pkgver}/$f" "$installDir/$f"
|
|
done
|
|
}
|