manually merged with ARM version
This commit is contained in:
33
x502api-1.1.34/arch/PKGBUILD.in
Normal file
33
x502api-1.1.34/arch/PKGBUILD.in
Normal 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
|
||||
}
|
||||
|
||||
|
||||
17
x502api-1.1.34/arch/x502api.install.in
Normal file
17
x502api-1.1.34/arch/x502api.install.in
Normal 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:
|
||||
Reference in New Issue
Block a user