5c65c3e95c
Based on work by @NotKit, thanks!
28 lines
883 B
Text
28 lines
883 B
Text
pkgname="device-oneplus-oneplus2"
|
|
pkgdesc="OnePlus 2"
|
|
pkgver=0.1
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="noarch"
|
|
options="!check"
|
|
depends="postmarketos-base linux-oneplus-oneplus2 mkbootimg mesa-dri-swrast msm-fb-refresher"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo
|
|
initfs-hook.sh
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
install -Dm644 "$srcdir"/deviceinfo \
|
|
"$pkgdir"/etc/deviceinfo
|
|
install -D -m644 "$srcdir"/initfs-hook.sh \
|
|
"$pkgdir"/etc/postmarketos-mkinitfs/hooks/00-${pkgname}.sh
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
sha512sums="c473372edda7405de3a27f555300e8511d722d1996cff822b540f776cd92dbc8afbe0a508e09aa78e822cfc759965728846a2e6136d1e334f619b092a3c9bc8a deviceinfo
|
|
abf299888a7a2eafc483a0077b0a60ff04a9c85e54c09758896a15d5d4fe0359765d078797d6791acd0ca5ede2f46dac2674fadbbbf0905d81e9a01e97d8b470 initfs-hook.sh"
|