PKGBUILDs/alarm/dkms-mt7610/PKGBUILD

47 lines
1.2 KiB
Bash
Raw Normal View History

2015-04-26 13:07:45 +00:00
# Maintainer: Adrian Fedoreanu <adrian.fedoreanu@gmail.com>
pkgname=dkms-mt7610
2015-04-28 11:10:32 +00:00
pkgver=v3.0.0.3
pkgrel=3
2015-04-26 13:07:45 +00:00
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"
2015-04-28 11:10:32 +00:00
source=("https://github.com/phedoreanu/mt7610u_wifi_sta_v3002_dpo_20130916/archive/v3.0.0.3.tar.gz"
2015-04-26 13:07:45 +00:00
"dkms.conf")
md5sums=('332e9dbf531e80b7a41e35090ca15984'
'62bd30a4e928a75da8c99728a768b7fb')
2015-04-26 13:07:45 +00:00
prepare() {
rm -rf ${srcdir}/$_pkgname-$pkgver
# Change src dir name
2015-04-28 11:10:32 +00:00
mv ${srcdir}/mt7610u_wifi_sta_v3002_dpo_20130916-3.0.0.3 ${srcdir}/$_pkgname-$pkgver
2015-04-26 13:07:45 +00:00
cd "${srcdir}/${_pkgname}-${pkgver}/"
}
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
}