-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuilddep.sh
More file actions
executable file
·61 lines (52 loc) · 1.32 KB
/
builddep.sh
File metadata and controls
executable file
·61 lines (52 loc) · 1.32 KB
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
#!/bin/bash
#########################################################################
#
# Build script mpd2cdspvolume debian package
#
# (C) bitkeeper 2023 https://github.com/bitkeeper/mpd2cdspvolume
# License: MIT
#
#########################################################################
if [ -z "$PKGNAME" ]
then
PKGNAME="mpd2cdspvolume"
fi
if [ -z "$PKGVERSION" ]
then
PKGVERSION="1.0.0"
fi
if [ -z "$DEBVER" ]
then
DEBVER="1"
fi
if [ -z "$DEBLOC" ]
then
DEBLOC=""
fi
#------------------------------------------------------------
# Prep root to pack
mkdir -p root/usr/local/bin
cp mpd2cdspvolume.py root/usr/local/bin/mpd2cdspvolume
mkdir -p root/usr/lib/tmpfiles.d
cp etc/mpd2cdspvolume.conf root/usr/lib/tmpfiles.d/
mkdir -p root/etc
cp etc/mpd2cdspvolume.config root/etc
chmod a+x root/usr/local/bin/mpd2cdspvolume
# build the package
fpm -s dir -t deb -n $PKGNAME -v $PKGVERSION \
--license MIT \
--category misc \
-S moode \
--iteration $DEBVER$DEBLOC \
-a all \
--deb-priority optional \
--url https://github.com/bitkeeper/mpd2cdspvolume \
-m $DEBEMAIL \
--license LICENSE \
--description "Service for synchronizing MPD volume to CamillaDSP." \
--deb-systemd etc/mpd2cdspvolume.service \
--depends python3-mpd2 \
--depends 'python3-camilladsp >= 2.0.0' \
--after-install etc/postinstall.sh \
root/usr/=/usr/. \
root/etc/=/etc/.