summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-05-30 16:48:42 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-05-30 16:59:07 -0300
commit30f8f618a8760fe26216839b114d32461cbe92ad (patch)
tree1472fc0562192473db93bc4355d791b1591f83bc /libre
parent97e01ce2985eb2623664ae8abd4f2946a0cdff10 (diff)
tp_smapi-0.42-85.parabola1.basekernel4.5: updating version
Diffstat (limited to 'libre')
-rw-r--r--libre/tp_smapi/PKGBUILD16
1 files changed, 7 insertions, 9 deletions
diff --git a/libre/tp_smapi/PKGBUILD b/libre/tp_smapi/PKGBUILD
index 7f281027f..734e3f51a 100644
--- a/libre/tp_smapi/PKGBUILD
+++ b/libre/tp_smapi/PKGBUILD
@@ -54,9 +54,10 @@ elif [[ ${_kernelname} == -xen ]]; then
_parabolarel=1
fi
+__pkgname=tp-smapi
_pkgname=tp_smapi
pkgname=${_pkgname}${_kernelname}
-pkgver=0.41
+pkgver=0.42
pkgrel=${_archrel}.parabola${_parabolarel}.basekernel${_basekernel}
_extramodules=extramodules-${_basekernel}${_kernelname}
pkgdesc="Modules for ThinkPad's SMAPI functionality (built for the linux-libre${_kernelname} kernel package)"
@@ -76,18 +77,15 @@ if [[ ${_kernelname} != "" ]]; then
fi
install='kmod.install'
-source=("https://github.com/downloads/evgeni/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('63c683415c764568f6bf17c7eabe4752')
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/evgeni/${_pkgname}/archive/${__pkgname}/${pkgver}.tar.gz")
+md5sums=('6a51d3aa459ad7a6ebfbb8c29527b3ee')
build() {
- cd "${srcdir}/${_pkgname}-${pkgver}"
+ cd "${srcdir}/${_pkgname}-${__pkgname}-${pkgver}"
_kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
- sed -ri -e "s/^(KVER\s*:=).*$/\1 ${_kernver}/" \
- -e "s#^(KBASE\s*:=).*\$#\1 /usr/lib/modules/${_kernver}#" Makefile
-
- make HDAPS=1
+ make HDAPS=1 KVER="${_kernver}" KBASE="/usr/lib/modules/${_kernver}"
}
package() {
@@ -96,7 +94,7 @@ package() {
# Actually install
make -C "/usr/lib/modules/${_kernver}/build" \
INSTALL_MOD_PATH="${pkgdir}/usr" \
- M="${srcdir}/${_pkgname}-${pkgver}" modules_install
+ M="${srcdir}/${_pkgname}-${__pkgname}-${pkgver}" modules_install
cd "${pkgdir}/usr/lib/modules"
mv "${_kernver}/extra" "${_extramodules}"