2019-06-20 20:03:38 +00:00
|
|
|
# Contributor: Daniele Debernardi <drebrez@gmail.com>
|
|
|
|
# Maintainer: Daniele Debernardi <drebrez@gmail.com>
|
|
|
|
pkgname=reboot-mode
|
2019-10-22 20:53:48 +00:00
|
|
|
pkgver=1.0.0
|
2019-06-20 20:03:38 +00:00
|
|
|
pkgrel=0
|
|
|
|
pkgdesc="Reboot the device to a specific mode"
|
|
|
|
url="https://postmarketos.org"
|
|
|
|
arch="all"
|
|
|
|
license="GPL-3.0-or-later"
|
|
|
|
makedepends="musl-dev linux-headers"
|
2019-10-22 20:53:48 +00:00
|
|
|
source="https://gitlab.com/postmarketos/reboot-mode/-/archive/$pkgver/reboot-mode-$pkgver.tar.gz"
|
|
|
|
options="!check" # No tests
|
2019-06-20 20:03:38 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
gcc reboot-mode.c -o reboot-mode.o -c
|
|
|
|
gcc reboot-mode.o -o reboot-mode
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2019-10-22 20:53:48 +00:00
|
|
|
install -Dm755 reboot-mode \
|
|
|
|
"$pkgdir"/usr/sbin/reboot-mode
|
2019-06-20 20:03:38 +00:00
|
|
|
}
|
|
|
|
|
2019-10-22 20:53:48 +00:00
|
|
|
sha512sums="926fae6f1b78b144f092d291f1d0edf58f2a5ea98d3af7aa812f4f1e1330002feb5a8c4499fe334e6d22bc515467359a5a0651e3995d2217a844f3c1b668ae9b reboot-mode-1.0.0.tar.gz"
|