mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
53 lines
1.7 KiB
Bash
53 lines
1.7 KiB
Bash
# Maintainer: Adrian Fedoreanu <adrian.fedoreanu@gmail.com>
|
|
pkgname=dkms-mt7610
|
|
pkgver=v3.0.0.2
|
|
pkgrel=1
|
|
pkgdesc="Driver for Ralink/MediaTek MT7610 chipset wireless adaptors"
|
|
arch=('any')
|
|
url="http://www.ralinktech.com"
|
|
license=('GPL')
|
|
depends=('dkms' 'linux-headers')
|
|
conflicts=()
|
|
install=${pkgname}.install
|
|
options=(!strip)
|
|
_pkgname="mt7610"
|
|
source=("https://github.com/phedoreanu/mt7610u_wifi_sta_v3002_dpo_20130916/releases/download/v3.0.0.2/mt7610u_wifi_sta_v3002_dpo_20130916.tar.bz2"
|
|
"https://mt7601-openwrt.googlecode.com/hg/patches/002-rt2870-mt7601Usta-kuid_t-kgid_t.patch"
|
|
"https://github.com/phedoreanu/mt7610u_wifi_sta_v3002_dpo_20130916/releases/download/v3.0.0.2/0001-compiling-error-macro-__DATE__-might-prevent-reprodu.patch"
|
|
"dkms.conf")
|
|
|
|
md5sums=('2b552aff1bbd4effe94185e222eb761e'
|
|
'a12442972c9518aca6b063426d060de6'
|
|
'16e64bc827336490cca3086589a0f287'
|
|
'd470c24251bb61a06f467ec5de7b4340')
|
|
|
|
prepare() {
|
|
rm -rf ${srcdir}/$_pkgname-$pkgver
|
|
|
|
# Change src dir name
|
|
mv ${srcdir}/mt7610u_wifi_sta_v3002_dpo_20130916 ${srcdir}/$_pkgname-$pkgver
|
|
cd "${srcdir}/${_pkgname}-${pkgver}/"
|
|
|
|
patch -Np1 -i ${srcdir}/0001-compiling-error-macro-__DATE__-might-prevent-reprodu.patch
|
|
patch -Np1 -i ${srcdir}/002-rt2870-mt7601Usta-kuid_t-kgid_t.patch
|
|
}
|
|
|
|
package() {
|
|
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
|
|
}
|