# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/brscan/brscan.conf # Copyright (C) 2008 - 2022 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- hook_add preconf 5 "[ $arch = x86 ] && cd brscan || cd brscan64" # no install target, only some ugly rpm/deb generator :-( makeinstopt= # I fear hardcoded pathes to usr/local, so better install there check_usrlocal=0 brscan_install() { install */.libs/*brother.so* $root`pkgprefix libdir sane-backends`/sane/ install */.libs/*brother2.so* $root`pkgprefix libdir sane-backends`/sane/ # BINARY only! for f in */libbr*.so*; do install $f $root$libdir/ f=${f##*/} # just filename ln -sfv $f $root$libdir/${f%.[0-9].[0-9]} ln -sfv $f $root$libdir/${f%.so*}.so done # grrr! LOCAL_BR=/usr/local/Brother mkdir -p $root$LOCAL_BR/sane/{models2,netconfig} install mk_package/brsanenetdevice{,2}.cfg mk_package/Brsane{,2}.ini \ mk_package/setupSaneScan $root$LOCAL_BR/sane/ install mk_package/ext1.ini $root$LOCAL_BR/sane/models2/ install netconfig/brsaneconfig{,2} $root$LOCAL_BR/sane/netconfig/ ln -sfv $LOCAL_BR/sane/netconfig/brsaneconfig{,2} $root/usr/bin/ # data files mkdir -p $root/$LOCAL_BR/sane/GrayCmData cp -rfv libbrcolm/GrayCmData/* $root/$LOCAL_BR/sane/GrayCmData/ } hook_add postmake 5 "brscan_install"