#!/usr/bin/env beesh

# BEE_VERSION safenetauthenticationclient-10.7.77-0

# more info on Token: https://safenet.gemalto.com/multi-factor-authentication/authenticators/pki-usb-authentication/etoken-5300-usb-token/
#
# Download Driver from
# https://extranet.mpg.de/IKT/Projekte/15022/Datenraum%20Rollouts/Forms/AllItems.aspx
# - 001_Citrix_Client-Komponenten - 003_Linux - CryptoToken Treiber - safenetauthenticationclient_10.7.77_amd64

SRCURL[0]="/src/mariux/beeroot/downloads/safenetauthenticationclient_${PKGVERSION}_amd64.deb"

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

mee_extract() {
    cd $S
    start_cmd ar xv "${@}"
    mkdir control
    start_cmd tar xvf control.tar.gz -C control
    start_cmd tar xvf data.tar.xz
    echo \$S=$S
}

#mee_patch() {
#    bee_patch "${@}"
#}

#mee_configure() {
#    bee_configure
#}

#mee_build() {
#    bee_build
#}

mee_install() {
    start_cmd cp -r $S/etc $S/usr $D/
}

#mee_install_post() {
#    exit
#}