summaryrefslogtreecommitdiff
path: root/libre/tp_smapi-libre/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-08-20 21:33:52 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-08-20 21:33:52 -0400
commitabea971649ac7e7e72893eb53aae2a6389a66106 (patch)
treed4c1fa1dcd7f4699c1ddbd100f6064b514a5fbe0 /libre/tp_smapi-libre/PKGBUILD
parent92f0fa3c89a53b4034a5928bb57935279ceeae68 (diff)
downloadabslibre-abea971649ac7e7e72893eb53aae2a6389a66106.tar.gz
abslibre-abea971649ac7e7e72893eb53aae2a6389a66106.tar.bz2
abslibre-abea971649ac7e7e72893eb53aae2a6389a66106.zip
Rename all the kernel-depending packages.
Diffstat (limited to 'libre/tp_smapi-libre/PKGBUILD')
-rw-r--r--libre/tp_smapi-libre/PKGBUILD64
1 files changed, 0 insertions, 64 deletions
diff --git a/libre/tp_smapi-libre/PKGBUILD b/libre/tp_smapi-libre/PKGBUILD
deleted file mode 100644
index c299d0f29..000000000
--- a/libre/tp_smapi-libre/PKGBUILD
+++ /dev/null
@@ -1,64 +0,0 @@
-# $Id: PKGBUILD 116831 2014-08-04 07:32:08Z tpowa $
-# 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
-pkgname=tp_smapi-libre
-pkgver=0.41
-pkgrel=52
-pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre kernel package)"
-arch=('i686' 'x86_64' 'mips64el')
-url='https://github.com/evgeni/tp_smapi'
-license=('GPL')
-depends=('linux-libre>=3.16' 'linux-libre<3.17')
-makedepends=('linux-libre-headers>=3.16' 'linux-libre-headers<3.17')
-replaces=("${_pkgname}")
-conflicts=("${_pkgname}")
-provides=("${_pkgname}=${pkgver}")
-install="${_pkgname}.install"
-source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('63c683415c764568f6bf17c7eabe4752')
-
-build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
-
- _kernver=${_kernver:-$(uname -r)}
- _extramodules=$(readlink -f "/usr/lib/modules/${_kernver}/extramodules" || true)
- _kernver=$(< "${_extramodules}/version")
-
- sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \
- -e "s#^(KBASE\s*:=).*\$#\1 ${_extramodules%/*}/${_kernver}#" Makefile
-
- make HDAPS=1
-}
-
-package() {
- _kernver=${_kernver:-$(uname -r)}
- _extramodules=$(readlink -f "/usr/lib/modules/${_kernver}/extramodules" || true)
- _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}/${_pkgname}.conf"
- install -Dm644 "${srcdir}/${_pkgname}.conf" "${pkgdir}/usr/lib/modules-load.d/${_pkgname}.conf"
-
- # update kernel version in install file
- sed -ri "s#^(extramodules=).*\$#\1${_extramodules}#" "${startdir}/${_pkgname}.install"
-}