summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 645f2f2986d5e2de11514c359e3e620c396cd7d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer: PromAvtomatika <info@sigursys.com>
# Contributor: George Kiselyov <i[dot]am[at]kiselyov-george[dot]ru>

pkgname=spnxclient
pkgver=1.1.1.53
pkgrel=0
arch=('any')
pkgdesc="ACS Sphinx client module"
url="https://www.sigur.com/download/"
license=('custom')
source=("https://www.sigur.com/dl/spnxclient_${pkgver}-${pkgrel}_all.deb"
        "spnx-client.desktop")
sha256sums=('464e2e36cb0ab3513c5d3bd9be50e523865ed6e0ec42deeccb14318c5795d4e4'
            '6ba598b7bac9667cf3520222f1b2201f2fb7f37b96ee9c6de7222bd6bf360552')
depends=(systemd-libs bash java-runtime lib32-libudev0-shim lib32-glibc pcsclite glibc)

prepare() {
  cd "${srcdir}"
  bsdtar -xf data.tar.xz
}

package() {
  cd "${srcdir}"
  install -m 755 -d "${pkgdir}"/usr/share/sphinx
  cp -r usr/share/sphinx "${pkgdir}"/usr/share/
  mkdir -p ${pkgdir}/usr/lib
  M=`uname -m | sed "s/x86_64/amd64/"`
  ln -s "/usr/share/sphinx/gui/spnxreader/libspnxreader_${M}.so" "${pkgdir}/usr/lib/spnxreader.so"
  ln -s "/usr/share/sphinx/gui/lib/libguinative_${M}.so" "${pkgdir}/usr/lib/libguinative.so"
  install -Dm755 usr/bin/spnxclient "${pkgdir}/usr/bin/spnxclient"
  install -Dm644 spnx-client.desktop "${pkgdir}/usr/share/applications/spnx-client.desktop"
}