-
Notifications
You must be signed in to change notification settings - Fork 0
/
package
executable file
·46 lines (38 loc) · 1.17 KB
/
package
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
#!/usr/bin/env bash
PACKAGE_NAME="home-row-control"
VERSION="0.1"
CONF_DIR=/etc/home-row-control
CONF=user.conf
CONF_TARGET=$CONF_DIR/$CONF
SCRIPT=_home_row_control
SCRIPT_TARGET=/usr/local/bin/$SCRIPT
CHANGELOG=CHANGELOG.md
DOC=README.md
DOC_TARGET=/usr/share/doc/home-row-control/$DOC
SERVICE=home-row-control.service
SERVICE_TARGET=/usr/lib/systemd/user/$SERVICE
PACKAGE_TYPES=( deb rpm tar sh )
for pkg_type in "${PACKAGE_TYPES[@]}"
do
(
set -x
fpm -t $pkg_type \
-s dir \
-n $PACKAGE_NAME \
-v $VERSION \
--license "CC-0" \
--maintainer "Ryan Prior <rprior@protonmail.com>" \
--vendor "Ryan Prior" \
--description "Use big modifier keys in the home row for Ctrl" \
-a all \
--url "https://github.com/ryanprior/home-row-control" \
"-d "{xcape,x11-xserver-utils,coreutils,dash} \
--config-files $CONF_DIR \
--deb-changelog $CHANGELOG \
--deb-no-default-config-files \
$SCRIPT=$SCRIPT_TARGET \
$DOC=$DOC_TARGET \
$SERVICE=$SERVICE_TARGET \
maps=$CONF_DIR
)
done