# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-htc-ville
pkgdesc="HTC One S"
pkgver=1
pkgrel=5
url="https://postmarketos.org"
license="MIT"
arch="armhf"
options="!check !archcheck"
depends="postmarketos-base linux-htc-ville mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="All non-free firmwares from a device image (wifi, modem, camera etc.)"
	depends="firmware-htc-ville"
	mkdir "$subpkgdir"
}


sha512sums="474859796b931ddfd52134a830482edeeb610b18322f445bb6ac4987f99f5ae3bd8431d8e845fddcfae0baa71be1faadb1956644cd0739e54951862471aef14b  deviceinfo"
