[arch-commits] Commit in rt3562sta/repos (6 files)

Tobias Powalowski tpowa at archlinux.org
Wed Nov 4 15:25:49 UTC 2015


    Date: Wednesday, November 4, 2015 @ 16:25:49
  Author: tpowa
Revision: 145976

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 145975, rt3562sta/trunk/PKGBUILD)
  rt3562sta/repos/community-testing-i686/rt3562sta.install
    (from rev 145975, rt3562sta/trunk/rt3562sta.install)
  rt3562sta/repos/community-testing-x86_64/
  rt3562sta/repos/community-testing-x86_64/PKGBUILD
    (from rev 145975, rt3562sta/trunk/PKGBUILD)
  rt3562sta/repos/community-testing-x86_64/rt3562sta.install
    (from rev 145975, 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 145975, rt3562sta/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD	                        (rev 0)
+++ community-testing-i686/PKGBUILD	2015-11-04 15:25:49 UTC (rev 145976)
@@ -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_r3
+_patchrel=${pkgver/*_r/}
+pkgrel=2
+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 0644 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=('3428c37e91f04dfb0d5e4aae9bbcbf72a3816e8804d0735110a53d1140c37eaa')

Copied: rt3562sta/repos/community-testing-i686/rt3562sta.install (from rev 145975, rt3562sta/trunk/rt3562sta.install)
===================================================================
--- community-testing-i686/rt3562sta.install	                        (rev 0)
+++ community-testing-i686/rt3562sta.install	2015-11-04 15:25:49 UTC (rev 145976)
@@ -0,0 +1,16 @@
+rebuild_module_dependencies() {
+	EXTRAMODULES='extramodules-4.3-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 145975, rt3562sta/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2015-11-04 15:25:49 UTC (rev 145976)
@@ -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_r3
+_patchrel=${pkgver/*_r/}
+pkgrel=2
+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 0644 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=('3428c37e91f04dfb0d5e4aae9bbcbf72a3816e8804d0735110a53d1140c37eaa')

Copied: rt3562sta/repos/community-testing-x86_64/rt3562sta.install (from rev 145975, rt3562sta/trunk/rt3562sta.install)
===================================================================
--- community-testing-x86_64/rt3562sta.install	                        (rev 0)
+++ community-testing-x86_64/rt3562sta.install	2015-11-04 15:25:49 UTC (rev 145976)
@@ -0,0 +1,16 @@
+rebuild_module_dependencies() {
+	EXTRAMODULES='extramodules-4.3-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