Add WiFi firmware and enable it. (!419)

This commit is contained in:
hacker12455 2019-06-07 11:17:38 +02:00 committed by Martijn Braam
parent 92454681aa
commit 2e31fbb242
No known key found for this signature in database
GPG key ID: C4280ACB000B060F
2 changed files with 31 additions and 1 deletions

View file

@ -2,13 +2,14 @@
pkgname="device-htc-k2ul"
pkgdesc="HTC One SV"
pkgver=0.1
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-htc-k2ul mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo initfs-hook.sh 90-android-touch-dev.rules"
build() {
@ -22,6 +23,13 @@ package() {
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-htc-k2ul"
mkdir "$subpkgdir"
}
sha512sums="82d2659d9d1711ff4451f5041c1e0fa51fc869461e6bfa1741ff9819b743ab62676e8386a5c428214ed0f1e7a98d7ab532beb479f868496a21dd1e3197bfd091 deviceinfo
e1fa365c75602eb3144ef36f0b1f1c622fea092c758064355c277daf58848655e51ed9db6cbef57a6fe605378a97f778a0b5e3ffca80797257369dc3064419de initfs-hook.sh
f0f69ab3b5b3fed11ec5049f37c71c4e9dcf87dc1f238199a3917dd61957d46783a8798d63d400cc5d3983987e750e3fec6d7117561ad5005f28131ae4821d66 90-android-touch-dev.rules"

View file

@ -0,0 +1,22 @@
pkgname=firmware-htc-k2ul
pkgver=1
pkgrel=0
pkgdesc="Firmware files for HTC One SV"
url="https://postmarketos.org"
arch="armv7"
license="proprietary"
options="!check !strip !archcheck"
# Source
_commit="c822f224447f013232ec72061610e454f6e63167"
_repo="firmware-htc-k2ul"
_url="https://github.com/Hacker1245/$_repo/"
source="$pkgname-$_commit.tar.gz::$_url/archive/${_commit}.tar.gz"
builddir="$srcdir/$_repo-$_commit"
package() {
install -dm755 "$pkgdir"/lib/firmware/postmarketos
cp -r * "$pkgdir"/lib/firmware/postmarketos/
}
sha512sums="73ae3529ecc7cd881774c11e7e6b7672646b80138fec27824b89071386a4d3f79bf0559e2f91c6a93285f0bd65a90a5509669bf400db7a0ab66babe25a202a56 firmware-htc-k2ul-c822f224447f013232ec72061610e454f6e63167.tar.gz"