Date: Tuesday, July 29, 2014 @ 12:09:18
  Author: foutrelis
Revision: 116531

archrelease: copy trunk to community-testing-i686, community-testing-x86_64

Added:
  rt3562sta/repos/community-testing-i686/
  rt3562sta/repos/community-testing-i686/PKGBUILD
    (from rev 116530, rt3562sta/trunk/PKGBUILD)
  rt3562sta/repos/community-testing-i686/rt3562sta.install
    (from rev 116530, rt3562sta/trunk/rt3562sta.install)
  rt3562sta/repos/community-testing-x86_64/
  rt3562sta/repos/community-testing-x86_64/PKGBUILD
    (from rev 116530, rt3562sta/trunk/PKGBUILD)
  rt3562sta/repos/community-testing-x86_64/rt3562sta.install
    (from rev 116530, rt3562sta/trunk/rt3562sta.install)

--------------------------------------------+
 community-testing-i686/PKGBUILD            |   60 +++++++++++++++++++++++++++
 community-testing-i686/rt3562sta.install   |   16 +++++++
 community-testing-x86_64/PKGBUILD          |   60 +++++++++++++++++++++++++++
 community-testing-x86_64/rt3562sta.install |   16 +++++++
 4 files changed, 152 insertions(+)

Copied: rt3562sta/repos/community-testing-i686/PKGBUILD (from rev 116530, 
rt3562sta/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD                             (rev 0)
+++ community-testing-i686/PKGBUILD     2014-07-29 10:09:18 UTC (rev 116531)
@@ -0,0 +1,60 @@
+# $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_r1
+_patchrel=${pkgver/*_r/}
+pkgrel=8
+pkgdesc="Ralink RT3562 PCI WLAN adaptors kernel module"
+arch=(i686 x86_64)
+url="http://www.mediatek.com/en/Products/support.php?sn=501";
+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 | cut -d . -f 2 | cut -f 1 -d -)
+       KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+       cd "$srcdir/rt3562sta-linux-r$_patchrel"
+
+       # clean up this mess of mixing RT2860STA with RT3562STA
+       # in documentation files
+       mv RT2860STA.dat RT3562STA.dat
+       mv RT2860STACard.dat RT3562STACard.dat
+       sed -i 's/2860/3562/g' *STA* iwpriv_usage.txt
+
+       # as we change the default name of the interface from raX to wlanX, 
change respective references in documentation, too
+       sed -i 's|ra0|wlan0|g' *.txt README* *.dat
+       sed -i 's|ra1|wlan1|g' *.txt README* *.dat
+       sed -i 's|ra2|wlan2|g' *.txt README* *.dat
+
+       export EXTRA_CFLAGS="-DVERSION=$pkgver"
+
+       # this Makefile is far too strict...
+       echo "LINUX_SRC = /usr/lib/modules/$KERNEL_RELEASE/build" >> Makefile
+
+       make
+}
+
+package() {
+       _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+       depends=("linux>=3.${_kernver}" "linux<3.$(expr ${_kernver} + 1)")
+       KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_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-3.$_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-3.$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}
+
+sha256sums=('6fd6306b6fb3886bbf9d284a28cc065a4cdfea18a03708e99aa4c7a038bcf02f')

Copied: rt3562sta/repos/community-testing-i686/rt3562sta.install (from rev 
116530, rt3562sta/trunk/rt3562sta.install)
===================================================================
--- community-testing-i686/rt3562sta.install                            (rev 0)
+++ community-testing-i686/rt3562sta.install    2014-07-29 10:09:18 UTC (rev 
116531)
@@ -0,0 +1,16 @@
+rebuild_module_dependencies() {
+       EXTRAMODULES='extramodules-3.15-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-testing-x86_64/PKGBUILD (from rev 116530, 
rt3562sta/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2014-07-29 10:09:18 UTC (rev 116531)
@@ -0,0 +1,60 @@
+# $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_r1
+_patchrel=${pkgver/*_r/}
+pkgrel=8
+pkgdesc="Ralink RT3562 PCI WLAN adaptors kernel module"
+arch=(i686 x86_64)
+url="http://www.mediatek.com/en/Products/support.php?sn=501";
+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 | cut -d . -f 2 | cut -f 1 -d -)
+       KERNEL_RELEASE=$(cat 
/usr/lib/modules/extramodules-3.$_kernver-ARCH/version)
+
+       cd "$srcdir/rt3562sta-linux-r$_patchrel"
+
+       # clean up this mess of mixing RT2860STA with RT3562STA
+       # in documentation files
+       mv RT2860STA.dat RT3562STA.dat
+       mv RT2860STACard.dat RT3562STACard.dat
+       sed -i 's/2860/3562/g' *STA* iwpriv_usage.txt
+
+       # as we change the default name of the interface from raX to wlanX, 
change respective references in documentation, too
+       sed -i 's|ra0|wlan0|g' *.txt README* *.dat
+       sed -i 's|ra1|wlan1|g' *.txt README* *.dat
+       sed -i 's|ra2|wlan2|g' *.txt README* *.dat
+
+       export EXTRA_CFLAGS="-DVERSION=$pkgver"
+
+       # this Makefile is far too strict...
+       echo "LINUX_SRC = /usr/lib/modules/$KERNEL_RELEASE/build" >> Makefile
+
+       make
+}
+
+package() {
+       _kernver=$(pacman -Q linux | cut -d . -f 2 | cut -f 1 -d -)
+       depends=("linux>=3.${_kernver}" "linux<3.$(expr ${_kernver} + 1)")
+       KERNEL_VERSION=$(cat 
/usr/lib/modules/extramodules-3.$_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-3.$_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-3.$_kernver-ARCH|" 
"$startdir/$pkgname.install"
+}
+
+sha256sums=('6fd6306b6fb3886bbf9d284a28cc065a4cdfea18a03708e99aa4c7a038bcf02f')

Copied: rt3562sta/repos/community-testing-x86_64/rt3562sta.install (from rev 
116530, rt3562sta/trunk/rt3562sta.install)
===================================================================
--- community-testing-x86_64/rt3562sta.install                          (rev 0)
+++ community-testing-x86_64/rt3562sta.install  2014-07-29 10:09:18 UTC (rev 
116531)
@@ -0,0 +1,16 @@
+rebuild_module_dependencies() {
+       EXTRAMODULES='extramodules-3.15-ARCH'
+       depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+       rebuild_module_dependencies
+}
+
+post_upgrade() {
+       rebuild_module_dependencies
+}
+
+post_remove() {
+       rebuild_module_dependencies
+}

Reply via email to