2015-04-27 17:13:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $(dirname $0)
|
|
|
|
|
2018-01-30 18:18:34 +00:00
|
|
|
VERSION="2"
|
2015-04-27 17:13:07 +00:00
|
|
|
|
|
|
|
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" \
|
2019-06-17 18:27:55 +00:00
|
|
|
--description "Udev rules for Trezor" \
|
2015-04-27 17:13:07 +00:00
|
|
|
--maintainer "SatoshiLabs <stick@satoshilabs.com>" \
|
2017-01-10 14:11:32 +00:00
|
|
|
--url "https://trezor.io/" \
|
2015-04-27 17:13:07 +00:00
|
|
|
--category "Productivity/Security" \
|
|
|
|
$NAME-$VERSION.tar.bz2
|
|
|
|
done
|
|
|
|
|
|
|
|
rm $NAME-$VERSION.tar.bz2
|
|
|
|
rm -rf ./lib
|