aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorKevin Daudt <kdaudt@alpinelinux.org>2020-02-10 21:24:51 +0000
committerKevin Daudt <kdaudt@alpinelinux.org>2020-02-10 21:36:47 +0000
commitd86e775b1c19ad22809dcecf4e319b8f5abe14e2 (patch)
tree33caaef1fc253b077b606d4ff19a2a47809cec02 /testing
parent5a1a9d4793f2065dc5d31e51911100863acbbe76 (diff)
downloadaports-d86e775b1c19ad22809dcecf4e319b8f5abe14e2.tar.bz2
aports-d86e775b1c19ad22809dcecf4e319b8f5abe14e2.tar.xz
testing/ideapad-lapop-modules-lts: new aport
Diffstat (limited to 'testing')
-rw-r--r--testing/ideapad-laptop-modules-lts/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/ideapad-laptop-modules-lts/APKBUILD b/testing/ideapad-laptop-modules-lts/APKBUILD
new file mode 100644
index 0000000000..d1b59be934
--- /dev/null
+++ b/testing/ideapad-laptop-modules-lts/APKBUILD
@@ -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"