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