2021-06-26 12:25:26 -04:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
mkdir -p "$1/usr/bin/"
|
|
|
|
|
|
|
|
#Set our prefix.
|
|
|
|
sed -i 's/$(PREFIX)/$(DESTDIR)\/$(PREFIX)/g' Makefile
|
|
|
|
sed -i 's/PREFIX= \/u/PREFIX= \/usr/' Makefile
|
|
|
|
sed 6a"DESTDIR= $1" Makefile > tmp.m
|
|
|
|
mv tmp.m Makefile
|
|
|
|
|
|
|
|
make all install
|
2021-06-30 13:42:01 -04:00
|
|
|
|
2021-06-28 19:49:24 -04:00
|
|
|
#For some reason the generated image doesn't work.
|
2021-06-30 13:42:01 -04:00
|
|
|
rm "$1/usr/share/s9fes/s9.image"
|
|
|
|
|
|
|
|
#Fix the location of the manual
|
|
|
|
mv "$1/usr/man" "$1/usr/share/man/"
|
2021-06-28 19:49:24 -04:00
|
|
|
|
2021-06-30 13:42:01 -04:00
|
|
|
printf "\nPlease remember to set your S9FES_LIBRARY_PATH to /usr/share/s9fes!\n"
|