2018-08-23 18:40:19 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname="device-fairphone-fp2"
|
2017-09-21 17:21:21 +00:00
|
|
|
pkgdesc="Fairphone 2"
|
2018-08-23 18:40:19 +00:00
|
|
|
pkgver=2
|
2018-12-25 19:25:32 +00:00
|
|
|
pkgrel=3
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2017-09-21 17:21:21 +00:00
|
|
|
license="MIT"
|
2019-02-13 18:54:14 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2018-02-26 20:53:22 +00:00
|
|
|
depends="postmarketos-base linux-fairphone-fp2 mkbootimg mesa-dri-swrast"
|
2018-08-23 18:40:19 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2018-10-10 07:30:21 +00:00
|
|
|
source="deviceinfo
|
|
|
|
FP2.conf
|
|
|
|
hifi"
|
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware $pkgname-alsa"
|
2018-08-23 18:40:19 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
2017-09-21 17:21:21 +00:00
|
|
|
|
|
|
|
package() {
|
2018-08-23 18:40:19 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-09-21 17:21:21 +00:00
|
|
|
}
|
|
|
|
|
2018-02-26 20:53:22 +00:00
|
|
|
nonfree_firmware() {
|
2018-10-10 07:30:21 +00:00
|
|
|
pkgdesc="Firmware for WiFi, Audio, etc."
|
|
|
|
depends="firmware-fairphone-fp2-adsp firmware-fairphone-fp2-wcnss $pkgname-alsa"
|
2018-02-26 20:53:22 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2018-10-10 07:30:21 +00:00
|
|
|
alsa() {
|
|
|
|
mkdir -p "$subpkgdir"/usr/share/alsa/ucm/FP2
|
|
|
|
install -Dm644 "$srcdir"/FP2.conf "$subpkgdir"/usr/share/alsa/ucm/FP2/
|
|
|
|
install -Dm644 "$srcdir"/hifi "$subpkgdir"/usr/share/alsa/ucm/FP2/
|
|
|
|
}
|
|
|
|
|
2019-02-13 18:54:14 +00:00
|
|
|
sha512sums="c20d8601def1e45df617f87159e336b8a9a8189bbc73b8112291a60ff6246d432549af9d1fb838252665b8be92aed97fc2afcba1736b59565458e50ae097f5fb deviceinfo
|
2018-10-10 07:30:21 +00:00
|
|
|
55360b1ba4ddadea341c9edb13c32ba5f19aabf75ab28602f30cfb79b9df8834f115ef979c70569f23ec1293b1fcd408baf320d87803293ce7106bdc73a26c9f FP2.conf
|
|
|
|
b834461c6866bb0c473dd089dd5da641dd42a00f610aad6503117aa50fe6e200db9ad0a264bb609f12350d59faee1f772907bacd75439f702ea7d52f6f85e2b1 hifi"
|