-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmix-install-blueman
executable file
·104 lines (84 loc) · 2.39 KB
/
mix-install-blueman
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/sh
### Package: mix-install-blueman
### Version: v20241101.2300
### Author: Michael Gan "xmixahlx" [email protected]
### License: GPLv3
### Script Dependencies: (none)
## OVERRIDES
# MIXTOOLSDIR
if [ -z $MIXTOOLSDIR ]; then
MIXTOOLSDIR="`pwd`"
fi
echo "*** MIXTOOLSDIR selected is $MIXTOOLSDIR."
# INSTALLDEPS
if [ -z $INSTALLDEPS ]; then
INSTALLDEPS=debian
fi
echo "*** INSTALLDEPS selected is $INSTALLDEPS."
# GITBRANCH
if [ -z $GITBRANCH ]; then
GITBRANCH=main
fi
echo "*** GITBRANCH selected is $GITBRANCH."
# DESTDIR
if [ -z $DESTDIR ]; then
DESTDIR=/usr
fi
echo "*** DESTDIR selected is $DESTDIR."
# SYSCONFDIR
if [ -z $SYSCONFDIR ]; then
SYSCONFDIR=/etc
fi
echo "*** SYSCONFDIR selected is $SYSCONFDIR."
# LOCALSTATEDIR
if [ -z $LOCALSTATEDIR ]; then
LOCALSTATEDIR=/var
fi
echo "*** LOCALSTATEDIR selected is $LOCALSTATEDIR."
## VARS
RESDIR=$MIXTOOLSDIR/resources
DEVDIR=$MIXTOOLSDIR/upstream
GITURL=https://github.com
GITREPO=blueman-project
GITTREE=blueman
PKGDIR=$GITTREE\_$GITBRANCH
## DEPS
# Provide INSTALLDEPS=debian to install dependencies.
if [ $INSTALLDEPS = debian ]; then
# sudo apt-get -y build-dep blueman
sudo apt-get -y install build-essential coreutils libc-bin meson ninja-build \
python3-caja nemo-python python3-nautilus cython3 python3
fi
## PREP
set -e
mkdir -p $DEVDIR
cd $DEVDIR
## GIT
[ -d $PKGDIR ] || git clone --recursive --depth=1 $GITURL/$GITREPO/$GITTREE.git --branch=$GITBRANCH $PKGDIR
cd $PKGDIR
git clean -dfx
git reset --hard
git pull
git submodule update --init --recursive --depth=1
## CLEAN
rm -Rf tmpbuild
## PATCH
#for file in $RESDIR/blueman/iptables*patch;do patch -p1 < $file;done
## CONFIGURE
PYTHON=/usr/bin/python3 CYTHONEXEC=/usr/bin/cython3 ./autogen.sh \
--prefix=$DESTDIR --libdir=$DESTDIR/lib/$MULTILIBDIR \
--exec-prefix=$DESTDIR --sysconfdir=$SYSCONFDIR --localstatedir=$LOCALSTATEDIR \
--enable-shared --enable-polkit --enable-caja-sendto --enable-nemo-sendto --enable-nautilus-sendto \
--enable-thunar-sendto --enable-settings-integration --enable-pulseaudio
#--disable-runtime-deps-check
#--with-dhcp-config=/etc/dhcp/dhcpd.conf --with-systemdsystemunitdir=/lib/systemd/system \
## BUILD
make -j `nproc`
## INSTALL
sudo make install
#sudo install -m 644 $RESDIR/blueman/blueman.rules /usr/share/polkit-1/rules.d/
#sudo install -m 644 $RESDIR/blueman/org.blueman.pkla /var/lib/polkit-1/localauthority/10-vendor.d/
sudo ldconfig
## EXIT
exit
## ENJOY