18 lines
308 B
Bash
18 lines
308 B
Bash
|
#!/bin/bash
|
||
|
# spmenuify build script
|
||
|
PREFIX="${PREFIX:-/usr}"
|
||
|
DESTDIR="${DESTDIR:-}"
|
||
|
INCDIR="${INCDIR:-/usr/include}"
|
||
|
makebin="${makebin:-$(command -v make)}"
|
||
|
|
||
|
loadconf() {
|
||
|
[ -x "buildconf" ] && source buildconf
|
||
|
}
|
||
|
|
||
|
install() {
|
||
|
$makebin install PREFIX="$PREFIX" DESTDIR="$DESTDIR"
|
||
|
}
|
||
|
|
||
|
loadconf
|
||
|
install
|