mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-04 12:01:41 +02:00
testing/ideapad-lapop-modules-lts: new aport
This commit is contained in:
parent
5a1a9d4793
commit
d86e775b1c
47
testing/ideapad-laptop-modules-lts/APKBUILD
Normal file
47
testing/ideapad-laptop-modules-lts/APKBUILD
Normal file
@ -0,0 +1,47 @@
|
||||
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
|
||||
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
|
||||
|
||||
_kver=5.4.18
|
||||
_krel=0
|
||||
_flavor="$FLAVOR"
|
||||
[ -z "$_flavor" ] && _flavor=lts
|
||||
|
||||
pkgname="ideapad-laptop-modules-lts"
|
||||
pkgver="0_git20190621"
|
||||
_commit=3fb21b7e078bb69d692ff31b666188d5f9d9ae01
|
||||
pkgrel=0
|
||||
pkgdesc="Wifi drivers for Lenovo Ideapad"
|
||||
url="https://github.com/jeremyb31/ideapad-laptop"
|
||||
arch="x86_64 x86" # Device is only x86*
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="linux-lts-dev"
|
||||
options="!check"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/jeremyb31/ideapad-laptop/archive/$_commit.tar.gz"
|
||||
builddir="$srcdir/ideapad-laptop-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
|
||||
if [ -z "$FLAVOR" ]; then
|
||||
(
|
||||
. "$startdir"/../../main/linux-$_flavor/APKBUILD
|
||||
[ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver"
|
||||
[ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel"
|
||||
return 0
|
||||
)
|
||||
fi
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
|
||||
make -j1 KVER=$_kver-$_krel-$_flavor \
|
||||
MODULES_DIR="/lib/modules/$_kver-$_krel-$_flavor"
|
||||
}
|
||||
|
||||
package() {
|
||||
install -Dm0644 ideapad-laptop.ko \
|
||||
"$pkgdir"/lib/module/$_kver-$_krel-$_flavor/extra/ideapad-laptop.ko
|
||||
}
|
||||
|
||||
sha512sums="2c560e9556331873d31beade4756208b15560400c0580218f7d4b8c07e68cd88c9e056c284e1330a601167f6cc3b8f777ccafa06d92ae227cf2c0a53185259fb ideapad-laptop-modules-lts-0_git20190621.tar.gz"
|
||||
Loading…
x
Reference in New Issue
Block a user