build-extensions.sh 398 Bytes
Newer Older
1
2
3
4
#!/bin/bash


# SUB-PACKAGES TO BUILD
5
PACKAGES="php7-apcu php7-imagick php7-libsodium php7-memcached php7-mongodb php7-redis php7-ssh2 php7-xdebug"
6
7
8
9

# ROOT PATH
ROOT_PATH=$(pwd)

10
11
# cd $ROOT_PATH/php7
# abuild -r
12
13
14
15
16
17
18
19
20
21
22
23

sudo apk update

for PACKAGE in $PACKAGES; do
    echo "----> Building $PACKAGE"
    cd $ROOT_PATH/$PACKAGE
    abuild checksum
    abuild -r
done

# RETURN TO ROOT PATH.
cd $ROOT_PATH