Skip to content

restream: Fix wrong hook name (postinstall → configure) #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions package/restream/package
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,17 @@ package() {
install -D -m 755 -t "$pkgdir"/opt/bin "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/restream
}

postinstall() {
printf "This app is only the device-side half of reStream. The companion script for consuming the output of this app can be found at https://github.com/rien/reStream\n"
printf "The script may need to be adjusted to target /opt/bin/restream instead of \$HOME/restream, or you can create a symlink on your device with\n"
printf "ln -s /opt/bin/restream \$HOME/restream\n"
configure() {
cat << 'MSG'
This app is only the device-side half of reStream. The companion script for
consuming the output of this app can be found at
<https://github.com/rien/reStream>.
The script may need to be adjusted to target '/opt/bin/restream' instead of
'$HOME/restream', or you can create a symlink on your device with:
ln -s /opt/bin/restream $HOME/restream
MSG
}