summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorFlorian Knodt2016-04-12 14:25:02 +0200
committerFlorian Knodt2016-04-12 14:35:07 +0200
commit57a9a711d2bfca3144338a94e9a8c3b3016b2eda (patch)
treecfa9fcf960556f119784435ef4c9ec0c2ca2f1b3 /PKGBUILD
parent951891d0da4198d9b3cf18117d7c01a138b4eaa4 (diff)
downloadaur-57a9a711d2bfca3144338a94e9a8c3b3016b2eda.tar.gz
Bump 0.3.6.12.2, port to extramodules
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 19 insertions, 8 deletions
diff --git a/PKGBUILD b/PKGBUILD
index dc79462a44a..9e5ba3e09c9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,6 @@
# $Id$
# Maintainer: Ido Rosen <ido@kernel.org>
+# Contributor: Florian Knodt <arch@adlerweb.info>
#
# NOTE: To request changes to this package, please submit a pull request
# to the GitHub repository at https://github.com/ido/packages-archlinux
@@ -8,35 +9,45 @@
pkgname='tn40xx'
pkgdesc="Tehuti Networks tn40xx network driver."
-pkgver='0.3.6.12.1'
+pkgver='0.3.6.12.2'
pkgrel=1
+_extramodules=extramodules-4.1-lts
arch=('x86_64')
url='http://www.tehutinetworks.net/'
license=('custom')
-depends=('linux-lts')
-makedepends=('linux-lts-headers')
+depends=('linux-lts>=4.1' 'linux-lts<4.2')
+makedepends=('linux-lts-headers>=4.1' 'linux-lts-headers<4.2')
options=('!libtool' '!strip' '!makeflags' '!buildflags' 'staticlibs')
source=("http://www.tehutinetworks.net/images/UL240756/${pkgname}-${pkgver}.tgz"
"tn40xx.install")
-sha512sums=('9d8391a6189f57541ace4ffee3097178a5110587dc86763647b20b8b0376f96da1fa02a3679578e5ce8fe56c56fe6e0bbb9f4fb4c6ef9d7854b11a3713f7830c'
- '911a59684dd0f7fa9913546a90f6144947251f2afe9fd17f6f0b9acb08c93a8dde0df70b2d1cd58de4d60eaffc7b608a978f7f2ffd4f69a22a31319818e806c0')
+sha512sums=('a9e1eb3bb0b4a2f538dc79add45e764750d30f6b271865eeda2552a7623eead84dd48cb56179bbb9982922d696fec4e00f85787cdde4c47ad863dd0f3f34fe17'
+ 'f68feb8edea01bd10e263bd3ed04d7a6ace7e52ad2acd2ce0dd2635cdaa0ea35637601c42a3bd2f42e0df2cfaf353aa2839af6ace5dafe80dba2445909c969ea')
install=tn40xx.install
build() {
cd "${srcdir}/${pkgname}-${pkgver}/"
- make
+ _kernver="$(cat /usr/lib/modules/${_extramodules}/version)"
+ make KVERSION="${_kernver}"
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}/"
+ #Upstream doesn't supply LICENSE file
#install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
#install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
+
install -dm755 "${pkgdir}/usr/share/doc/${pkgname}"
install -m644 Readme release_notes \
"${pkgdir}/usr/share/doc/${pkgname}"
- install -dm755 "${pkgdir}/lib/modules/$(uname -r)/drivers/net/"
- install -m755 ${pkgname}.ko "${pkgdir}/lib/modules/$(uname -r)/drivers/net/"
+
+ install -dm755 "${pkgdir}"/usr/lib/{modules/${_extramodules},modules-load.d}
+ install -m755 ${pkgname}.ko "${pkgdir}/usr/lib/modules/${_extramodules}/"
+
+ gzip "${pkgdir}"/usr/lib/modules/${_extramodules}/${pkgname%-*}.ko
+ echo ${pkgname%-*} > "${pkgdir}"/usr/lib/modules-load.d/${pkgname}.conf
+
install -dm755 "${pkgdir}/etc/pm/config.d/"
echo "SUSPEND_MODULES=${pkgname}" > "${pkgdir}/etc/pm/config.d/${pkgname}"
}
+