Date: Saturday, July 4, 2015 @ 15:40:20 Author: foutrelis Revision: 136389
archrelease: copy trunk to community-staging-i686, community-staging-x86_64 Added: rt3562sta/repos/community-staging-i686/ rt3562sta/repos/community-staging-i686/PKGBUILD (from rev 136388, rt3562sta/trunk/PKGBUILD) rt3562sta/repos/community-staging-i686/rt3562sta.install (from rev 136388, rt3562sta/trunk/rt3562sta.install) rt3562sta/repos/community-staging-x86_64/ rt3562sta/repos/community-staging-x86_64/PKGBUILD (from rev 136388, rt3562sta/trunk/PKGBUILD) rt3562sta/repos/community-staging-x86_64/rt3562sta.install (from rev 136388, rt3562sta/trunk/rt3562sta.install) --------------------------------------------+ community-staging-i686/PKGBUILD | 46 +++++++++++++++++++++++++++ community-staging-i686/rt3562sta.install | 16 +++++++++ community-staging-x86_64/PKGBUILD | 46 +++++++++++++++++++++++++++ community-staging-x86_64/rt3562sta.install | 16 +++++++++ 4 files changed, 124 insertions(+) Copied: rt3562sta/repos/community-staging-i686/PKGBUILD (from rev 136388, rt3562sta/trunk/PKGBUILD) =================================================================== --- community-staging-i686/PKGBUILD (rev 0) +++ community-staging-i686/PKGBUILD 2015-07-04 13:40:20 UTC (rev 136389) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> +# Based on SUSE spec https://build.opensuse.org/package/files?package=rt3562sta&project=driver%3Awireless + +pkgname=rt3562sta +pkgver=2.4.1.1_r2 +_patchrel=${pkgver/*_r/} +pkgrel=8 +pkgdesc="Ralink RT3562 PCI WLAN adaptors kernel module" +arch=(i686 x86_64) +url="http://www.mediatek.com/en/products/connectivity/wifi/consumer-electronics/pcie/rt3562/" +license=('GPL') +depends=('linux') +makedepends=('linux-headers') +install=$pkgname.install +source=($pkgname-$pkgver.tar.gz::https://github.com/mtorromeo/rt3562sta-linux/archive/r${_patchrel}.tar.gz) + +build() { + _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') + KERNEL_RELEASE=$(cat /usr/lib/modules/extramodules-$_kernver-ARCH/version) + + cd "$srcdir"/rt3562sta-linux-r$_patchrel + + EXTRA_CFLAGS="-DVERSION=$pkgver" \ + LINUX_SRC="/usr/lib/modules/$KERNEL_RELEASE/build" \ + make +} + +package() { + _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') + depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} + 1)") + KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-$_kernver-ARCH/version) + msg "Kernel = $KERNEL_VERSION" + + cd "$srcdir"/rt3562sta-linux-r$_patchrel + + install -Dm 0640 RT3562STA.dat "$pkgdir/etc/Wireless/RT3562STA/RT3562STA.dat" + install -Dm 0644 os/linux/$pkgname.ko "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko" + install -dm 0755 "$pkgdir/usr/share/doc/$pkgname" + install -m 0644 iwpriv_usage.txt README* RT3562STA* sta_ate_iwpriv_usage.txt "$pkgdir/usr/share/doc/$pkgname" + + find "$pkgdir" -name '*.ko' -exec gzip -9 {} \; + sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" "$startdir/$pkgname.install" +} + +sha256sums=('fbb31034fac14d63f9ed16039b79743746d91e0587e3bdd036697f7fd39cef9a') Copied: rt3562sta/repos/community-staging-i686/rt3562sta.install (from rev 136388, rt3562sta/trunk/rt3562sta.install) =================================================================== --- community-staging-i686/rt3562sta.install (rev 0) +++ community-staging-i686/rt3562sta.install 2015-07-04 13:40:20 UTC (rev 136389) @@ -0,0 +1,16 @@ +rebuild_module_dependencies() { + EXTRAMODULES='extramodules-4.1-ARCH' + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) +} + +post_install() { + rebuild_module_dependencies +} + +post_upgrade() { + rebuild_module_dependencies +} + +post_remove() { + rebuild_module_dependencies +} Copied: rt3562sta/repos/community-staging-x86_64/PKGBUILD (from rev 136388, rt3562sta/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2015-07-04 13:40:20 UTC (rev 136389) @@ -0,0 +1,46 @@ +# $Id$ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> +# Based on SUSE spec https://build.opensuse.org/package/files?package=rt3562sta&project=driver%3Awireless + +pkgname=rt3562sta +pkgver=2.4.1.1_r2 +_patchrel=${pkgver/*_r/} +pkgrel=8 +pkgdesc="Ralink RT3562 PCI WLAN adaptors kernel module" +arch=(i686 x86_64) +url="http://www.mediatek.com/en/products/connectivity/wifi/consumer-electronics/pcie/rt3562/" +license=('GPL') +depends=('linux') +makedepends=('linux-headers') +install=$pkgname.install +source=($pkgname-$pkgver.tar.gz::https://github.com/mtorromeo/rt3562sta-linux/archive/r${_patchrel}.tar.gz) + +build() { + _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') + KERNEL_RELEASE=$(cat /usr/lib/modules/extramodules-$_kernver-ARCH/version) + + cd "$srcdir"/rt3562sta-linux-r$_patchrel + + EXTRA_CFLAGS="-DVERSION=$pkgver" \ + LINUX_SRC="/usr/lib/modules/$KERNEL_RELEASE/build" \ + make +} + +package() { + _kernver=$(pacman -Q linux | sed -r 's#.* ([0-9]+\.[0-9]+).*#\1#') + depends=("linux>=$_kernver" "linux<${_kernver/.*}.$(expr ${_kernver/*.} + 1)") + KERNEL_VERSION=$(cat /usr/lib/modules/extramodules-$_kernver-ARCH/version) + msg "Kernel = $KERNEL_VERSION" + + cd "$srcdir"/rt3562sta-linux-r$_patchrel + + install -Dm 0640 RT3562STA.dat "$pkgdir/etc/Wireless/RT3562STA/RT3562STA.dat" + install -Dm 0644 os/linux/$pkgname.ko "$pkgdir/usr/lib/modules/extramodules-$_kernver-ARCH/$pkgname.ko" + install -dm 0755 "$pkgdir/usr/share/doc/$pkgname" + install -m 0644 iwpriv_usage.txt README* RT3562STA* sta_ate_iwpriv_usage.txt "$pkgdir/usr/share/doc/$pkgname" + + find "$pkgdir" -name '*.ko' -exec gzip -9 {} \; + sed -i "s|extramodules-.*-ARCH|extramodules-$_kernver-ARCH|" "$startdir/$pkgname.install" +} + +sha256sums=('fbb31034fac14d63f9ed16039b79743746d91e0587e3bdd036697f7fd39cef9a') Copied: rt3562sta/repos/community-staging-x86_64/rt3562sta.install (from rev 136388, rt3562sta/trunk/rt3562sta.install) =================================================================== --- community-staging-x86_64/rt3562sta.install (rev 0) +++ community-staging-x86_64/rt3562sta.install 2015-07-04 13:40:20 UTC (rev 136389) @@ -0,0 +1,16 @@ +rebuild_module_dependencies() { + EXTRAMODULES='extramodules-4.1-ARCH' + depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) +} + +post_install() { + rebuild_module_dependencies +} + +post_upgrade() { + rebuild_module_dependencies +} + +post_remove() { + rebuild_module_dependencies +}