[arch-commits] Commit in tp_smapi-lts/repos (6 files)
Andreas Radke
andyrtr at archlinux.org
Sat Aug 20 20:49:19 UTC 2016
Date: Saturday, August 20, 2016 @ 20:49:18
Author: andyrtr
Revision: 187216
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
tp_smapi-lts/repos/community-testing-i686/
tp_smapi-lts/repos/community-testing-i686/PKGBUILD
(from rev 187215, tp_smapi-lts/trunk/PKGBUILD)
tp_smapi-lts/repos/community-testing-i686/tp_smapi-lts.install
(from rev 187215, tp_smapi-lts/trunk/tp_smapi-lts.install)
tp_smapi-lts/repos/community-testing-x86_64/
tp_smapi-lts/repos/community-testing-x86_64/PKGBUILD
(from rev 187215, tp_smapi-lts/trunk/PKGBUILD)
tp_smapi-lts/repos/community-testing-x86_64/tp_smapi-lts.install
(from rev 187215, tp_smapi-lts/trunk/tp_smapi-lts.install)
-----------------------------------------------+
community-testing-i686/PKGBUILD | 50 ++++++++++++++++++++++++
community-testing-i686/tp_smapi-lts.install | 13 ++++++
community-testing-x86_64/PKGBUILD | 50 ++++++++++++++++++++++++
community-testing-x86_64/tp_smapi-lts.install | 13 ++++++
4 files changed, 126 insertions(+)
Copied: tp_smapi-lts/repos/community-testing-i686/PKGBUILD (from rev 187215, tp_smapi-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2016-08-20 20:49:18 UTC (rev 187216)
@@ -0,0 +1,50 @@
+# Maintainer: Lukas Fleischer <lfleischer at 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-lts
+_pkgname=tp_smapi
+__pkgname=tp-smapi
+pkgver=0.42
+_extramodules=/usr/lib/modules/extramodules-4.4-lts
+pkgrel=3
+pkgdesc="Modules for ThinkPad's SMAPI functionality"
+arch=('i686' 'x86_64')
+url='https://github.com/evgeni/tp_smapi'
+license=('GPL')
+depends=('linux-lts>=4.4.19' 'linux-lts<4.5')
+makedepends=('linux-lts-headers>=4.4.19' 'linux-lts-headers<4.5')
+install="${pkgname}.install"
+source=("https://github.com/evgeni/$_pkgname/archive/$__pkgname/$pkgver.tar.gz")
+md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
+
+build() {
+ cd "$srcdir/$_pkgname-$__pkgname-$pkgver"
+
+ _kernver=$(< "${_extramodules}/version")
+ make HDAPS=1 KVER="$_kernver" KBASE="/usr/lib/modules/$_kernver"
+}
+
+package() {
+ _kernver=$(< "${_extramodules}/version")
+
+ make -C "${_extramodules%/*}/${_kernver}/build" \
+ INSTALL_MOD_PATH="${pkgdir}/${_extramodules%%/lib/*}" \
+ M="$srcdir/$_pkgname-$__pkgname-$pkgver" modules_install
+
+ cd "${pkgdir}/${_extramodules%/*}"
+ mv "${_kernver}/extra" "${_extramodules##*/}"
+ rmdir "${_kernver}"
+
+ # compress kernel modules
+ find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +
+
+ # load module on startup
+ echo tp_smapi > "${srcdir}/${pkgname}.conf"
+ install -Dm644 "${srcdir}/${pkgname}.conf" "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf"
+}
Copied: tp_smapi-lts/repos/community-testing-i686/tp_smapi-lts.install (from rev 187215, tp_smapi-lts/trunk/tp_smapi-lts.install)
===================================================================
--- community-testing-i686/tp_smapi-lts.install (rev 0)
+++ community-testing-i686/tp_smapi-lts.install 2016-08-20 20:49:18 UTC (rev 187216)
@@ -0,0 +1,13 @@
+extramodules=/usr/lib/modules/extramodules-4.4-lts
+
+post_install() {
+ depmod -v $(< "$extramodules/version") &>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
Copied: tp_smapi-lts/repos/community-testing-x86_64/PKGBUILD (from rev 187215, tp_smapi-lts/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2016-08-20 20:49:18 UTC (rev 187216)
@@ -0,0 +1,50 @@
+# Maintainer: Lukas Fleischer <lfleischer at 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-lts
+_pkgname=tp_smapi
+__pkgname=tp-smapi
+pkgver=0.42
+_extramodules=/usr/lib/modules/extramodules-4.4-lts
+pkgrel=3
+pkgdesc="Modules for ThinkPad's SMAPI functionality"
+arch=('i686' 'x86_64')
+url='https://github.com/evgeni/tp_smapi'
+license=('GPL')
+depends=('linux-lts>=4.4.19' 'linux-lts<4.5')
+makedepends=('linux-lts-headers>=4.4.19' 'linux-lts-headers<4.5')
+install="${pkgname}.install"
+source=("https://github.com/evgeni/$_pkgname/archive/$__pkgname/$pkgver.tar.gz")
+md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
+
+build() {
+ cd "$srcdir/$_pkgname-$__pkgname-$pkgver"
+
+ _kernver=$(< "${_extramodules}/version")
+ make HDAPS=1 KVER="$_kernver" KBASE="/usr/lib/modules/$_kernver"
+}
+
+package() {
+ _kernver=$(< "${_extramodules}/version")
+
+ make -C "${_extramodules%/*}/${_kernver}/build" \
+ INSTALL_MOD_PATH="${pkgdir}/${_extramodules%%/lib/*}" \
+ M="$srcdir/$_pkgname-$__pkgname-$pkgver" modules_install
+
+ cd "${pkgdir}/${_extramodules%/*}"
+ mv "${_kernver}/extra" "${_extramodules##*/}"
+ rmdir "${_kernver}"
+
+ # compress kernel modules
+ find "${pkgdir}" -name "*.ko" -exec gzip -9 {} +
+
+ # load module on startup
+ echo tp_smapi > "${srcdir}/${pkgname}.conf"
+ install -Dm644 "${srcdir}/${pkgname}.conf" "${pkgdir}/usr/lib/modules-load.d/${pkgname}.conf"
+}
Copied: tp_smapi-lts/repos/community-testing-x86_64/tp_smapi-lts.install (from rev 187215, tp_smapi-lts/trunk/tp_smapi-lts.install)
===================================================================
--- community-testing-x86_64/tp_smapi-lts.install (rev 0)
+++ community-testing-x86_64/tp_smapi-lts.install 2016-08-20 20:49:18 UTC (rev 187216)
@@ -0,0 +1,13 @@
+extramodules=/usr/lib/modules/extramodules-4.4-lts
+
+post_install() {
+ depmod -v $(< "$extramodules/version") &>/dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list