moved libs to the lib directory

This commit is contained in:
2025-11-13 18:40:06 +03:00
parent 4678ff1690
commit dda7ed6db8
634 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1,33 @@
pkgname=@PACKAGE_NAME@
pkgver=@PACKAGE_VERSION@
pkgrel=1
pkgdesc="library for control L-Card L502/E502 data acqusition modules"
arch=('i686' 'x86_64')
url="http://lcard.ru"
license=('LGPL')
groups=()
depends=('libusb' 'udev' 'avahi')
makedepends=('cmake' 'libusb')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=@PACKAGE_ARCH_INSTALL_FILE@
source=(@PACKAGE_SRC_TAR_NAME@)
replaces=('l502api')
build() {
cd "$srcdir/$pkgname-$pkgver"
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ./
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir/" install
}

View File

@ -0,0 +1,17 @@
# This is a default template for a post-install scriptlet.
# Uncomment only required functions and remove any functions
# you don't need (and this header).
## arg 1: the new package version
post_install() {
# обновляем правила udev, чтобы разрешить доступ к крейтам по USB
if [ -x /sbin/udevadm ]; then
/sbin/udevadm control --reload-rules
/sbin/udevadm trigger --subsystem-match=usb --attr-match=idVendor=2a52 --attr-match=idProduct=e502
/sbin/udevadm trigger --subsystem-match=usb --attr-match=idVendor=2a52 --attr-match=idProduct=0e16
fi
exit 0
}
# vim:set ts=2 sw=2 et: