Date: Saturday, August 12, 2017 @ 10:09:49
  Author: tpowa
Revision: 249992

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

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

-------------------------------------------+
 community-testing-i686/PKGBUILD           |   48 ++++++++++++++++++++++++++++
 community-testing-i686/tp_smapi.install   |   13 +++++++
 community-testing-x86_64/PKGBUILD         |   48 ++++++++++++++++++++++++++++
 community-testing-x86_64/tp_smapi.install |   13 +++++++
 4 files changed, 122 insertions(+)

Copied: tp_smapi/repos/community-testing-i686/PKGBUILD (from rev 249991, 
tp_smapi/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD                             (rev 0)
+++ community-testing-i686/PKGBUILD     2017-08-12 10:09:49 UTC (rev 249992)
@@ -0,0 +1,48 @@
+# Maintainer: Lukas Fleischer <lfleisc...@archlinux.org>
+# Contributor: xduugu
+# Contributor: nh2
+# Contributor: Steven Davidovitz <steviedizzle ð gmail đ com>
+# Contributor: Nick B <Shirakawasuna ð gmail đ com>
+# Contributor: Christof Musik <christof ð senfdax đ de>
+# Contributor: Stefan Rupp <archlinux ð stefanrupp đ de>
+# Contributor: Ignas Anikevicius <anikevicius ð gmail đ com>
+
+pkgname=tp_smapi
+_pkgname=tp-smapi
+pkgver=0.42
+_extradir=/usr/lib/modules/extramodules-4.12-ARCH
+pkgrel=26
+pkgdesc="Modules for ThinkPad's SMAPI functionality"
+arch=('i686' 'x86_64')
+url='https://github.com/evgeni/tp_smapi'
+license=('GPL')
+depends=('linux>=4.12' 'linux<4.13')
+makedepends=('linux-headers>=4.12' 'linux-headers<4.13')
+install="$pkgname.install"
+source=("$pkgname-$_pkgname-$pkgver.tar.gz::https://github.com/evgeni/$pkgname/archive/$_pkgname/$pkgver.tar.gz";)
+md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
+
+build() {
+  cd $pkgname-$_pkgname-$pkgver
+
+  # https://bugs.archlinux.org/task/54975 (kernel has no 
_GLOBAL_OFFSET_TABLE_):
+  # Clear EXTRA_CFLAGS since it defaults to injecting CFLAGS and -fno-plt 
breaks the modules
+
+  make HDAPS=1 KVER="$(<$_extradir/version)" EXTRA_CFLAGS=
+}
+
+package() {
+  cd $pkgname-$_pkgname-$pkgver
+
+  # install kernel modules
+  find . -name "*.ko" -exec install -Dt "$pkgdir$_extradir" {} +
+
+  # compress kernel modules
+  find "$pkgdir" -name "*.ko" -exec gzip -n -9 {} +
+
+  # load module on startup
+  echo tp_smapi | install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+
+  # update kernel version in install file
+  sed -ri "s|^(extramodules=).*\$|\1$_extradir|" "$startdir/tp_smapi.install"
+}

Copied: tp_smapi/repos/community-testing-i686/tp_smapi.install (from rev 
249991, tp_smapi/trunk/tp_smapi.install)
===================================================================
--- community-testing-i686/tp_smapi.install                             (rev 0)
+++ community-testing-i686/tp_smapi.install     2017-08-12 10:09:49 UTC (rev 
249992)
@@ -0,0 +1,13 @@
+extramodules=/usr/lib/modules/extramodules-4.12-ARCH
+
+post_install() {
+  depmod -v $(< "$extramodules/version") &>/dev/null
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       post_install
+}

Copied: tp_smapi/repos/community-testing-x86_64/PKGBUILD (from rev 249991, 
tp_smapi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2017-08-12 10:09:49 UTC (rev 249992)
@@ -0,0 +1,48 @@
+# Maintainer: Lukas Fleischer <lfleisc...@archlinux.org>
+# Contributor: xduugu
+# Contributor: nh2
+# Contributor: Steven Davidovitz <steviedizzle ð gmail đ com>
+# Contributor: Nick B <Shirakawasuna ð gmail đ com>
+# Contributor: Christof Musik <christof ð senfdax đ de>
+# Contributor: Stefan Rupp <archlinux ð stefanrupp đ de>
+# Contributor: Ignas Anikevicius <anikevicius ð gmail đ com>
+
+pkgname=tp_smapi
+_pkgname=tp-smapi
+pkgver=0.42
+_extradir=/usr/lib/modules/extramodules-4.12-ARCH
+pkgrel=26
+pkgdesc="Modules for ThinkPad's SMAPI functionality"
+arch=('i686' 'x86_64')
+url='https://github.com/evgeni/tp_smapi'
+license=('GPL')
+depends=('linux>=4.12' 'linux<4.13')
+makedepends=('linux-headers>=4.12' 'linux-headers<4.13')
+install="$pkgname.install"
+source=("$pkgname-$_pkgname-$pkgver.tar.gz::https://github.com/evgeni/$pkgname/archive/$_pkgname/$pkgver.tar.gz";)
+md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
+
+build() {
+  cd $pkgname-$_pkgname-$pkgver
+
+  # https://bugs.archlinux.org/task/54975 (kernel has no 
_GLOBAL_OFFSET_TABLE_):
+  # Clear EXTRA_CFLAGS since it defaults to injecting CFLAGS and -fno-plt 
breaks the modules
+
+  make HDAPS=1 KVER="$(<$_extradir/version)" EXTRA_CFLAGS=
+}
+
+package() {
+  cd $pkgname-$_pkgname-$pkgver
+
+  # install kernel modules
+  find . -name "*.ko" -exec install -Dt "$pkgdir$_extradir" {} +
+
+  # compress kernel modules
+  find "$pkgdir" -name "*.ko" -exec gzip -n -9 {} +
+
+  # load module on startup
+  echo tp_smapi | install -Dm644 /dev/stdin 
"$pkgdir/usr/lib/modules-load.d/$pkgname.conf"
+
+  # update kernel version in install file
+  sed -ri "s|^(extramodules=).*\$|\1$_extradir|" "$startdir/tp_smapi.install"
+}

Copied: tp_smapi/repos/community-testing-x86_64/tp_smapi.install (from rev 
249991, tp_smapi/trunk/tp_smapi.install)
===================================================================
--- community-testing-x86_64/tp_smapi.install                           (rev 0)
+++ community-testing-x86_64/tp_smapi.install   2017-08-12 10:09:49 UTC (rev 
249992)
@@ -0,0 +1,13 @@
+extramodules=/usr/lib/modules/extramodules-4.12-ARCH
+
+post_install() {
+  depmod -v $(< "$extramodules/version") &>/dev/null
+}
+
+post_upgrade() {
+       post_install
+}
+
+post_remove() {
+       post_install
+}

Reply via email to