-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaspell
66 lines (43 loc) · 1.33 KB
/
aspell
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
set -e
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=20101122
URL=https://ftp.gnu.org/gnu/aspell/aspell-$PKG_VER.tar.gz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=$(echo $DIR | sed 's|-[^-]*$||g')
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
./configure --prefix=/usr
make -j22
# Install
sudo make DESTDIR=/pkgs/$PACKAGE install
ln -svfn aspell-0.60 /pkgs/$PACKAGE/usr/lib/aspell &&
install -v -m755 -d /pkgs/$PACKAGE/usr/share/doc/aspell-$PKG_VER/aspell{,-dev}.html &&
install -v -m644 manual/aspell.html/* \
/pkgs/$PACKAGE/usr/share/doc/aspell-$PKG_VER/aspell.html &&
install -v -m644 manual/aspell-dev.html/* \
/pkgs/$PACKAGE/usr/share/doc/aspell-$PKG_VER/aspell-dev.html
mkdir -p /pkgs/$PACKAGE/usr/bin
install -v -m 755 scripts/ispell /pkgs/$PACKAGE/usr/bin/
install -v -m 755 scripts/spell /usr/bin/
# Install english spell check
cd /blfs/builds
wget https://ftp.gnu.org/gnu/aspell/dict/en/aspell6-en-2020.12.07-0.tar.bz2
tar xf aspell6-en-2020.12.07-0.tar.bz2
cd aspell6-en-2020.12.07-0
./configure
make
make DESTDIR=/pkgs/$PACKAGE install
cd /pkgs
sudo echo "which" > /pkgs/$PACKAGE/depends
sudo echo "" > /pkgs/$PACKAGE/make-depends
sudo tar -cvzpf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR