diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-23 01:36:15 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-08-23 01:36:15 -0300 |
commit | 28529fefc594bf968ca30905a5a2d6c9ae1d6f3c (patch) | |
tree | 4c2428f259eb8d14153d27c38659293f4a970f03 /libre/tp_smapi-libre-lts | |
parent | b1852341008bbce6f23ebc4c300112d98c96ab8d (diff) |
add modifications from coadde and lukeshu contributions for linux-libre* and dependencies
Diffstat (limited to 'libre/tp_smapi-libre-lts')
-rw-r--r-- | libre/tp_smapi-libre-lts/PKGBUILD | 61 | ||||
-rw-r--r-- | libre/tp_smapi-libre-lts/tp_smapi-lts.install | 13 |
2 files changed, 0 insertions, 74 deletions
diff --git a/libre/tp_smapi-libre-lts/PKGBUILD b/libre/tp_smapi-libre-lts/PKGBUILD deleted file mode 100644 index 11ac463e1..000000000 --- a/libre/tp_smapi-libre-lts/PKGBUILD +++ /dev/null @@ -1,61 +0,0 @@ -# $Id: PKGBUILD 115344 2014-07-09 08:56:06Z fyan $ -# Maintainer (Arch): Lukas Fleischer <archlinux at cryptocrack dot de> -# Contributor (Arch): xduugu -# Contributor (Arch): nh2 -# Contributor (Arch): Steven Davidovitz <steviedizzle ð gmail đ com> -# Contributor (Arch): Nick B <Shirakawasuna ð gmail đ com> -# Contributor (Arch): Christof Musik <christof ð senfdax đ de> -# Contributor (Arch): Stefan Rupp <archlinux ð stefanrupp đ de> -# Contributor (Arch): Ignas Anikevicius <anikevicius ð gmail đ com> -# Maintainer: André Silva <emulatorman@parabola.nu> - -pkgname=tp_smapi-libre-lts -_pkgname=tp_smapi -_extramodules=/usr/lib/modules/extramodules-3.14-libre-lts -pkgver=0.41 -pkgrel=29 -pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre-lts kernel package)" -arch=('i686' 'x86_64' 'mips64el') -url='https://github.com/evgeni/tp_smapi' -license=('GPL') -depends=('linux-libre-lts>=3.14.11' 'linux-libre-lts<3.15') -makedepends=('linux-libre-lts-headers>=3.14' 'linux-libre-lts-headers<3.15') -replaces=('tp_smapi-lts') -conflicts=('tp_smapi-lts') -provides=("tp_smapi-lts=${pkgver}") -install='tp_smapi-lts.install' -source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz") -md5sums=('63c683415c764568f6bf17c7eabe4752') - -build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - - _kernver=$(< "${_extramodules}/version") - - sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \ - -e "s#^(KBASE\s*:=).*\$#\1 ${_extramodules%/*}/${_kernver}#" Makefile - - make HDAPS=1 -} - -package() { - _kernver=$(< "${_extramodules}/version") - - make -C "${_extramodules%/*}/${_kernver}/build" \ - INSTALL_MOD_PATH="${pkgdir}/${_extramodules%%/lib/*}" \ - M="${srcdir}/${_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}/tp_smapi-lts.conf" - install -Dm644 "${srcdir}/tp_smapi-lts.conf" "${pkgdir}/usr/lib/modules-load.d/tp_smapi-lts.conf" - - # update kernel version in install file - sed -ri "s#^(extramodules=).*\$#\1${_extramodules}#" "${startdir}/tp_smapi-lts.install" -} diff --git a/libre/tp_smapi-libre-lts/tp_smapi-lts.install b/libre/tp_smapi-libre-lts/tp_smapi-lts.install deleted file mode 100644 index 97e1750e0..000000000 --- a/libre/tp_smapi-libre-lts/tp_smapi-lts.install +++ /dev/null @@ -1,13 +0,0 @@ -extramodules=/usr/lib/modules/extramodules-3.14-libre-lts - -post_install() { - depmod -v $(< "$extramodules/version") &>/dev/null -} - -post_upgrade() { - post_install -} - -post_remove() { - post_install -} |