summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3dc16a89274addf20a599a1750117cf727ef3e6d (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
# Maintainer: Hans-Nikolai Viessmann <hv15 AT hw.ac.uk>
pkgname=sshprint
pkgver=1.6.3
pkgrel=1
_pkgrel=beta
pkgdesc="A ZSH script to print local files on remote printers using SSH"
arch=('any')
url="https://github.com/hv15/sshprint"
license=('MIT')
changelog='CHANGELOG.md'
install=sshprint.install
depends=('openssh' 'zsh' 'gawk')
source=("https://github.com/hv15/sshprint/archive/${pkgver}-${_pkgrel}.tar.gz")
md5sums=('4435f2d92d1cd18d4d7388918535fd78')

package() {
  cd "${srcdir}/${pkgname}-${pkgver}-${_pkgrel}"
  # place the doc
  install -d "${pkgdir}/usr/share/doc/sshprint"
  install -Dm644 "README.md" "${pkgdir}/usr/share/doc/sshprint/README"
  install -Dm644 "config.examples/config.example" "${pkgdir}/usr/share/doc/sshprint/config.example"
  install -Dm644 "config.examples/server_config.example" "${pkgdir}/usr/share/doc/sshprint/server_config.example"
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # place the script
  install -Dm755 "sshprint" "${pkgdir}/usr/bin/sshprint"
}
# vim:ts=2 sw=2