pkgname=dkms-mt7601 pkgver=v3.0.0.3 pkgrel=1 pkgdesc="Driver for Ralink MT7601 chipset wireless adaptors" arch=('arm') url="http://www.ralinktech.com" license=('GPL') depends=('dkms' 'linux-headers') conflicts=() install=${pkgname}.install options=(!strip) _pkgname="mt7601" source=("https://googledrive.com/host/0B_JlgOR4VNe0Sjg4ei0ySEY4aUE/DPA_MT7601U_LinuxSTA_3.0.0.3_20130717_LS.tar.bz2" "dkms.conf") md5sums=('7597450f4374ecaa5798a8f60c956911' '230952e09ff23d9725fc329a2e9522e3') package() { # Change src dir name mv ${srcdir}/DPA_MT7601U_LinuxSTA_3.0.0.3_20130717_LS ${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 }