-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_pacman.sh
executable file
·34 lines (28 loc) · 1.06 KB
/
build_pacman.sh
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
#!/usr/bin/env bash
set -e
echo "---------------------------------------------------------"
echo "Build Pacman [Linux]: <Bash>"
echo "---------------------------------------------------------"
# Display pacman/makepkg version
echo "pacman:"
pacman --version
echo "makepkg:"
makepkg --version
# Get the current directory
CALL_DIR="$PWD"
# Go to the location of this directory even if the script is being run from
# somewhere else
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]:-$0}"; )" &> /dev/null && pwd 2> /dev/null; )";
cd "$SCRIPT_DIR"
# Go to the root directory of this repository
cd ..
# Go to installer directory and create the normal, git and binary package
cd installer
makepkg -p PKGBUILD --log --clean -f --syncdeps --rmdeps
makepkg -p PKGBUILD --printsrcinfo > .SRCINFO
makepkg -p PKGBUILD_GIT --log --clean -f --syncdeps --rmdeps
makepkg -p PKGBUILD_GIT --printsrcinfo > .SRCINFO_GIT
makepkg -p PKGBUILD_BIN --log --clean -f --syncdeps --rmdeps
makepkg -p PKGBUILD_BIN --printsrcinfo > .SRCINFO_BIN
# Go back to the call directory
cd "$CALL_DIR"