summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1ca8f1f46b0b21db56d8c7706df44254a9fe1a6f (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: Nick Haghiri (n s dot hag hiri at G mail dot com)
pkgname=hexcore-link
pkgver=2.5.9
pkgrel=1
pkgdesc="Hexcore Link for ANNE PRO 2D and other keyboards with firmware versions higher than 3.0"
arch=('x86_64')
url="https://www.hexcore.xyz/hexcore-link"
license=(custom)
depends=('desktop-file-utils' 'hicolor-icon-theme' 'libappindicator-gtk3' 'libnotify' 'libxss' 'libxtst' 'nss' 'libxkbcommon-x11')
options=('!strip' '!emptydirs')
install=${pkgname}.install

DLAGENTS='https::/usr/bin/curl -qgC - -e https://www.hexcore.xyz/hexcore-link -o %o %u'

source_x86_64=("https://s5.hexcore.xyz/releases/software/hexcore-link/linux/tar/HexcoreLink_${pkgver}_x64.tar.gz"
"deb_extra_files_hexcore.tar.gz")
sha256sums_x86_64=('726f2062d2446d2101e6b2eec5e95d186c1a0a15e21ede69e5ff573ec30d24e9'
'94e4942cc7408feb419e76aa2867e50bdf2bedefd734eb367286b5a7844d2c46')


package(){

	# Install the main files
	install -d "${pkgdir}/opt/${pkgname}"
	cp -a "${srcdir}/HexcoreLink_${pkgver}_x64/." "${pkgdir}/opt/${pkgname}"
	install -d "${pkgdir}/usr"
	cp -a "${srcdir}/usr/." "${pkgdir}/usr"

	# Exec bit
	chmod 755 "${pkgdir}/opt/${pkgname}/hexcore-link"

	# License
	install -D -m644 "${pkgdir}/opt/hexcore-link/LICENSES.chromium.html" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-CHROMIUM"

	install -D -m644 "${pkgdir}/opt/hexcore-link/LICENSE.electron.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-ELECTRON"

}