diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:51:27 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:51:27 +0000 |
commit | 60a11f87366fdfbd114cdc91ff813518858e5f8d (patch) | |
tree | d033f4a5a08a99ff07ac631677fb119dff3abba8 /libre/tp_smapi-libre-lts/PKGBUILD | |
parent | 35e9f8bc93db9e691bf6d00950956ca3e5d86e83 (diff) |
Tue Feb 18 01:50:28 UTC 2014
Diffstat (limited to 'libre/tp_smapi-libre-lts/PKGBUILD')
-rw-r--r-- | libre/tp_smapi-libre-lts/PKGBUILD | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/libre/tp_smapi-libre-lts/PKGBUILD b/libre/tp_smapi-libre-lts/PKGBUILD deleted file mode 100644 index de5c899c6..000000000 --- a/libre/tp_smapi-libre-lts/PKGBUILD +++ /dev/null @@ -1,61 +0,0 @@ -# $Id: PKGBUILD 104131 2014-01-16 08:33:59Z bpiotrowski $ -# Maintainer: Lukas Fleischer <archlinux at cryptocrack dot de> -# 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> -# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> - -pkgname=tp_smapi-libre-lts -_pkgname=tp_smapi -_extramodules=/usr/lib/modules/extramodules-3.10-LIBRE-LTS -pkgver=0.41 -pkgrel=23 -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.10' 'linux-libre-lts<3.11') -makedepends=('linux-libre-lts-headers>=3.10' 'linux-libre-lts-headers<3.11') -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" -} |