forked from valr/awf
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.sh
28 lines (24 loc) · 792 Bytes
/
build.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
#!/bin/bash
# Debian: sudo apt install build-essential dh-make dh-autoreconf intltool libgtk2.0-dev libgtk-3-dev libgtk-4-dev
# Fedora: sudo dnf install autoconf automake gtk2-devel gtk3-devel gtk4-devel desktop-file-utils
# openSUSE: sudo zypper install autoconf automake gtk2-devel gtk3-devel gtk4-devel desktop-file-utils
# remove old builds
rm -f awf-gtk2 awf-gtk3 awf-gtk4
# copy to a tmp directory
mkdir builder builder/src
touch builder/{NEWS,AUTHORS,README,ChangeLog}
cp /usr/share/common-licenses/GPL-3 builder/COPYING
cp configure.ac builder/
cp Makefile.am builder/
cp src/Makefile.am builder/src/
cp src/awf.c builder/src/
# build
cd builder/
autoreconf -fi
./configure
make -s
# final
cp src/awf-gtk* ..
cd ..
ls -altrh awf-gtk4 awf-gtk3 awf-gtk2
rm -rf builder/