pmaports/device/testing/device-samsung-manta/APKBUILD
Pablo Correa Gómez cf69326222
device/*: rebuild all devices (MR 4551)
[ci:ignore-count]
2024-01-22 19:32:30 +01:00

58 lines
1.8 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-manta
pkgdesc="Google Nexus 10"
pkgver=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base linux-postmarketos-exynos5 mkbootimg"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="
deviceinfo
modules-load.conf
100-wlan-mac.rules
wifi-macaddr.sh
networkmanager.conf
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/networkmanager.conf \
"$pkgdir"/etc/NetworkManager/conf.d/10-manta.conf
install -Dm744 "$srcdir"/wifi-macaddr.sh \
-t "$pkgdir"/usr/lib/device-samsung-manta/
install -Dm644 "$srcdir"/100-wlan-mac.rules \
-t "$pkgdir"/usr/lib/udev/rules.d/
mkdir -p "$pkgdir"/etc/modprobe.d
echo "options ds2482 active_pullup=0" \
> "$pkgdir"/etc/modprobe.d/ds2482.conf
}
nonfree_firmware() {
pkgdesc="Firmware for Samsung Manta (Nexus 10)"
depends="
firmware-samsung-manta
linux-firmware-brcm
linux-firmware-s5p-mfc
"
mkdir "$subpkgdir"
}
sha512sums="
ec542216d7ee2608781c41b6afc82a7ae272c2e032dbdbb88343b5e6140e0e298a2243ddba7b48ebccffbe0ebd79f8dfb816767a0502067acf278a73cc7647ff deviceinfo
fe65b8e792e5d69dfff707e7b9a415ce7c4786fbcc1ad0aba638450c8470e81b0eb3cf170bc95a38e1234e1a3a5d6a013cc06d771a6c61015fbd12c07038e918 modules-load.conf
37a18d36e1e08ddcc605de73214dc02a9e7737f6a66b2e4be301fca816bbf3c2ba6b5ead1f12c745fd0fa019e2a8e959e4fc20386ad94ca7277d4c7d7f9fb703 100-wlan-mac.rules
ef18bd3e5c4c8c69dce3293c9e70fa0b30820ba12cb8217346b63392db95513169c31e9bf730aac5cecea15e2cda4166b093bbf0e456055a5432e57400ecb9b1 wifi-macaddr.sh
5c3a692f22a29fca792c114c6d94ff1bf0d6921f068f207a2894a8f99c73dcc319e7c803ed7adfe64eb3e60088f37e2a2730118b2ed57aa01b35415664085567 networkmanager.conf
"