summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 75125cc9ac6785d16d3ad012b537795b33055454 (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
# Maintainer: neo2001 <neo2001 at posteo dot net>

pkgname=jesc-configurator-bin
_pkgname=jesc-configurator
pkgver=1.2.6
pkgrel=1
pkgdesc="Application for JESC BLHeli firmware flashing and configuration."
arch=('x86_64')
url="https://github.com/jflight-public/jesc-configurator"
source=(
"https://github.com/jflight-public/jesc-configurator/releases/download/v${pkgver}/JESC-Configurator_linux64_${pkgver}.zip"
"https://raw.githubusercontent.com/jflight-public/jesc-configurator/master/images/icon_128.png"
"https://raw.githubusercontent.com/jflight-public/jesc-configurator/master/LICENSE"
"jesc-configurator.desktop"
)

sha256sums=('1620f6d932570f7ac333a8478501cf8af4204e0674c906110bec1be73f8cfc49'
            '0356279bd144225c42ad1605b02913ea013762d3de19e78e27281f966e4da947'
            '589ed823e9a84c56feb95ac58e7cf384626b9cbf4fda2a907bc36e103de1bad2'
            '507f26e8e54f6097e43a9b9cb6de6d231393a4ce18308745a29e1a605ac77ec7')

install="${_pkgname}.install"
options=(!strip)
license=('GPL3')
#conflicts=('jesc-configurator')

package() {
  mkdir -p "${pkgdir}/opt/${_pkgname}"
  mkdir -p "${pkgdir}/usr/bin"
  install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
  install -Dm644 "${srcdir}/jesc-configurator.desktop" "${pkgdir}/usr/share/applications/jesc-configurator.desktop"
  install -Dm644 "${srcdir}/icon_128.png" "${pkgdir}/opt/${_pkgname}/jesc_icon_128.png"
  cp -r --preserve=all "${srcdir}/JESC Configurator/." "${pkgdir}/opt/${_pkgname}/"
  ln -s "/opt/${_pkgname}/jesc-configurator" "${pkgdir}/usr/bin/jesc-configurator"
}