2017-12-14 21:17:18 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-06-29 20:04:16 +00:00
|
|
|
pkgname=device-samsung-i9070
|
|
|
|
pkgver=1
|
2018-03-07 22:35:02 +00:00
|
|
|
pkgrel=23
|
2017-06-29 20:04:16 +00:00
|
|
|
pkgdesc="Samsung Galaxy S Advance"
|
|
|
|
url="https://github.com/postmarketOS"
|
|
|
|
arch="noarch"
|
|
|
|
license="MIT"
|
2018-02-26 22:11:44 +00:00
|
|
|
depends="postmarketos-base linux-samsung-i9070 mesa-dri-swrast"
|
2017-12-14 21:17:18 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2017-06-29 20:04:16 +00:00
|
|
|
install=""
|
2018-02-26 22:11:44 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2017-07-08 05:30:00 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
initfs-hook.sh
|
|
|
|
modules-load.conf
|
|
|
|
"
|
2017-06-29 20:04:16 +00:00
|
|
|
options="!check"
|
|
|
|
|
2017-12-14 21:17:18 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-06-29 20:04:16 +00:00
|
|
|
package() {
|
2017-12-14 21:17:18 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/initfs-hook.sh \
|
2017-07-08 05:30:00 +00:00
|
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
|
2017-12-14 21:17:18 +00:00
|
|
|
install -Dm644 "$srcdir"/modules-load.conf \
|
2017-07-08 05:30:00 +00:00
|
|
|
"$pkgdir"/etc/modules-load.d/00-${pkgname}.conf
|
2017-06-29 20:04:16 +00:00
|
|
|
}
|
|
|
|
|
2018-02-26 22:11:44 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-samsung-i9070"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2018-03-07 22:35:02 +00:00
|
|
|
sha512sums="fef89f69b97c294f10f5d016d76a42cde0042e746df870541c37b525d045633265b91cca68c39513662e8319a6af9990c38bd7436599d3d10be7d9baed4351d3 deviceinfo
|
2018-01-09 19:42:52 +00:00
|
|
|
449e5047f9c15d536233fe2836cf10ae3dd2bf46f1c12ad0423f098bd54bff357438747a3c23aec9b1d8826146f87ff39d657c2b48247fb5ac4ebdeed65634fa initfs-hook.sh
|
2017-07-08 05:30:00 +00:00
|
|
|
61e8becbf6fa7c1c6c42e481083f5981ae7af33a48cbc53e817d8ac2c6a8e4f67a54b32ae3b8f5f25f7b412165a849dc93a629110dc47b0d16927bf2a12eb7e1 modules-load.conf"
|