summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dd4e0cc33da0cefbf2ecc33e02d35e1903fbd85a (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
# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com

set -u
pkgname='brother-bradmin-light'
pkgver='1.20.0'; _brfile='qdsel120brl'
pkgrel='1'
pkgdesc='administer Brother printers'
arch=('any')
url='http://support.brother.com/g/s/id/linux/en/download_esp.html'
license=('custom:Brother Industries')
depends=('java-environment')
source=("http://www.brother.com/pub/bsc/linux/dlf/${_brfile}.tar.gz")
sha256sums=('a6e09cf8b39be008d0cdf3cdd45c4e23ae1548720415671b8840a81359b09c39')

package() {
  set -u
  cd "${_brfile}"
  install -d "${pkgdir}/opt/brother-bradmin/"
  mv * "${pkgdir}/opt/brother-bradmin/"

  # Desktop file for config tool
  install -Dm644 <(cat << EOF
[Desktop Entry]
Name=BRAdmin Light
GenericName=Brother Printer Manager
Comment=Administer Brother Printers
Exec=java -jar '/opt/brother-bradmin/BRAdmin Light.jar'
Terminal=false
Type=Application
#Icon=
Categories=Settings;Utility;
MimeType=application/x-executable
EOF
  ) "${pkgdir}/usr/share/applications/brother-bradmin-light.desktop"
  set +u
}
set +u