summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 444d2474e73c07d5f3b993e71e0027a09f382d08 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com

set -u
_pkgnameu='InterCon-NetTool'
pkgname="${_pkgnameu,,}"
pkgver='1.8.58'
pkgrel='1'
pkgdesc='Administer SEH USB and parallel Print Servers'
arch=('i686' 'x86_64')
url='https://www.seh-technology.com/'
license=('custom')
depends_i686=('gcc-libs' 'fontconfig' 'freetype2' 'libx11' 'libxext' 'libxft' 'libxrender')
depends_x86_64=("${depends_i686[@]/#/lib32-}")
# Debian: libc6 (>= 2.3.6-6~), libfontconfig1 (>= 2.8.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.2.1), libx11-6, libxext6, libxft2 (>> 2.1.1), libxrender1
_verwatch=("${url}services/downloads/download-printserver-extern/ps03a.html" 'InterCon-NetTool Version \([0-9\.]*\) for Linux.*' 't')
_srcdir="${_pkgnameu}-Linux-${pkgver}"
options=('!strip')
source=("${url}fileadmin/user/downloads/tools/${_srcdir}.zip")
sha256sums=('b1aeffa056c068f7d0a5ccfe266dabd75a88f702ce06980dc1b910398b1e73f8')

prepare() {
  set -u
  cd "${_srcdir}"
  chmod 644 *
  #local _ver="${pkgver/\./_}"
  #_ver="${_ver/\./-}"
  bsdtar -x -f "${_pkgnameu}-${pkgver}.rpm"
  set +u
}

package() {
  set -u
  mv "${_srcdir}/usr" "${pkgdir}"
  cd "${pkgdir}/usr/"
  mv 'local' 'share'
  cd 'share'
  mv 'bin' 'lib' ..
  cd '../bin'
  sed -i -e 's:/usr/local/lib/:/usr/./././lib/:g' \
         -e 's:/usr/local/:/usr/share/:g' 'nettool'
  #mv 'nettool' 'intercon-nettool'
  cd "${srcdir}"
  install -Dm644 <(cat << EOF
# Automatically generated by ${pkgname}-${pkgver} PKGBUILD from Arch Linux AUR
# https://aur.archlinux.org/

[Desktop Entry]
Name=Intercon NetTool
GenericName=Print Server Manager
Comment=Manage SEH-Intercon Print Servers
Exec=/usr/bin/nettool
Terminal=false
Type=Application
Icon=edb
Categories=Application;Utility;
MimeType=application/x-executable
EOF
  ) "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  cd "${pkgdir}/usr/lib/nettool/"
  install -Dpm644 license*.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/"
  set +u
}
set +u