[arch-commits] Commit in rt3562sta/repos (6 files)
Tobias Powalowski
tpowa at archlinux.org
Thu Sep 3 19:29:36 UTC 2015
Date: Thursday, September 3, 2015 @ 21:29:36
Author: tpowa
Revision: 139162
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 139161, rt3562sta/trunk/PKGBUILD)
rt3562sta/repos/community-testing-i686/rt3562sta.install
(from rev 139161, rt3562sta/trunk/rt3562sta.install)
rt3562sta/repos/community-testing-x86_64/
rt3562sta/repos/community-testing-x86_64/PKGBUILD
(from rev 139161, rt3562sta/trunk/PKGBUILD)
rt3562sta/repos/community-testing-x86_64/rt3562sta.install
(from rev 139161, rt3562sta/trunk/rt3562sta.install)
--------------------------------------------+
community-testing-i686/PKGBUILD | 46 +++++++++++++++++++++++++++
community-testing-i686/rt3562sta.install | 16 +++++++++
community-testing-x86_64/PKGBUILD | 46 +++++++++++++++++++++++++++
community-testing-x86_64/rt3562sta.install | 16 +++++++++
4 files changed, 124 insertions(+)
Copied: rt3562sta/repos/community-testing-i686/PKGBUILD (from rev 139161, rt3562sta/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2015-09-03 19:29:36 UTC (rev 139162)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at 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=13
+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-testing-i686/rt3562sta.install (from rev 139161, rt3562sta/trunk/rt3562sta.install)
===================================================================
--- community-testing-i686/rt3562sta.install (rev 0)
+++ community-testing-i686/rt3562sta.install 2015-09-03 19:29:36 UTC (rev 139162)
@@ -0,0 +1,16 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-4.2-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 139161, rt3562sta/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2015-09-03 19:29:36 UTC (rev 139162)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at 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=13
+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-testing-x86_64/rt3562sta.install (from rev 139161, rt3562sta/trunk/rt3562sta.install)
===================================================================
--- community-testing-x86_64/rt3562sta.install (rev 0)
+++ community-testing-x86_64/rt3562sta.install 2015-09-03 19:29:36 UTC (rev 139162)
@@ -0,0 +1,16 @@
+rebuild_module_dependencies() {
+ EXTRAMODULES='extramodules-4.2-ARCH'
+ depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+ rebuild_module_dependencies
+}
+
+post_upgrade() {
+ rebuild_module_dependencies
+}
+
+post_remove() {
+ rebuild_module_dependencies
+}
More information about the arch-commits
mailing list