You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/common/udev/dist/release.sh

33 lines
578 B

#!/bin/sh
set -e
cd $(dirname $0)
VERSION="2"
install -D -m 0644 ./trezor.rules ./lib/udev/rules.d/52-trezor-extension.rules
NAME=trezor-udev
tar cfj $NAME-$VERSION.tar.bz2 ./lib
for TYPE in "deb" "rpm"; do
fpm \
-s tar \
-t $TYPE \
-a all \
-n $NAME \
-v $VERSION \
--license "LGPL-3.0" \
--vendor "SatoshiLabs" \
--description "Udev rules for Trezor" \
--maintainer "SatoshiLabs <stick@satoshilabs.com>" \
--url "https://trezor.io/" \
--category "Productivity/Security" \
$NAME-$VERSION.tar.bz2
done
rm $NAME-$VERSION.tar.bz2
rm -rf ./lib