mirror of
git://git.2f30.org/morpheus.git
synced 2024-07-01 03:13:44 +00:00
42 lines
754 B
Plaintext
42 lines
754 B
Plaintext
url=$mirror/joe-3.1jupp26.tgz
|
|
|
|
fetch() {
|
|
wget -c $url -O src/joe-3.1jupp26.tgz
|
|
}
|
|
|
|
unpack() {
|
|
cd src
|
|
[ -d jupp ] || tar xzf joe-3.1jupp26.tgz
|
|
cd -
|
|
}
|
|
|
|
build() {
|
|
cd src/jupp
|
|
make clean
|
|
CC=x86_64-linux-musl-gcc sh configure --prefix="/" CFLAGS="-I$libcroot/include" \
|
|
LDFLAGS="-L$libcroot/lib -static" || return 1
|
|
make || return 1
|
|
cd -
|
|
}
|
|
|
|
install() {
|
|
cd src/jupp
|
|
cp joe termidx "$root/bin"
|
|
mkdir -p "$root/share/man/man1"
|
|
cp joe.1 "$root/share/man/man1"
|
|
mkdir -p "$root/etc/joe/charmaps"
|
|
cp charmaps/klingon "$root/etc/joe/charmaps"
|
|
cp joerc jmacsrc "$root/etc/joe"
|
|
mkdir -p "$root/etc/joe/syntax"
|
|
cp syntax/* "$root/etc/joe/syntax"
|
|
cd -
|
|
|
|
cd "$root/bin"
|
|
ln -sf joe jmacs
|
|
cd -
|
|
|
|
cd "$root/share/man/man1"
|
|
ln -sf joe.1 jmacs.1
|
|
cd -
|
|
}
|