summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorjrdn2024-12-05 17:13:47 -0600
committerjrdn2024-12-05 17:13:47 -0600
commit9955dd1073b62ddec5991bf70d6641257e15895a (patch)
tree11005445f9b480ec3eefd1113b886dc075daed18 /PKGBUILD
parent37ba7f2f2f1571a679d4caf497aa9bf125012d1e (diff)
downloadaur-9955dd1073b62ddec5991bf70d6641257e15895a.tar.gz
redirect to master branch for git version - cleaned PKGBUILD directory references
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD58
1 files changed, 25 insertions, 33 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 51fe1165d5cb..f9badd7b3018 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,7 @@
pkgname=openlinkhub-git
_pkgnamesrc=OpenLinkHub
_location=/opt/$_pkgnamesrc
-_tag=0.3.8
-pkgver=0.3.8
+pkgver=0.3.8.r0.gd6cedff
pkgrel=1
pkgdesc="Open source Linux interface for iCUE LINK Hub and other Corsair AIOs, Hubs."
arch=('x86_64')
@@ -13,39 +12,37 @@ license=('GPL3')
groups=()
depends=('systemd')
makedepends=('go' 'git' 'base-devel')
-provides=("${pkgname}")
-conflicts=("${pkgname}")
-replaces=("${pkgname}")
+provides=("openlinkhub")
+conflicts=("openlinkhub" )
+replaces=("openlinkhub")
backup=()
options=()
-install=OpenLinkHub.install
+install=$_pkgnamesrc.install
source=(
- git+https://github.com/jurkovic-nikola/${_pkgnamesrc}.git#tag=${_tag}
- OpenLinkHub.install
- OpenLinkHub.sysusers
- OpenLinkHub.tmpfiles
- package.patch
+ git+https://github.com/jurkovic-nikola/${_pkgnamesrc}.git#branch=main
+ $_pkgnamesrc.install
+ $_pkgnamesrc.sysusers
+ $_pkgnamesrc.tmpfiles
+ $_pkgnamesrc.service
)
noextract=()
-sha256sums=('ed3caea0908b13a87a8c3b7b7af624f51078645423d22bd8982a1c4d826f9bc5'
+sha256sums=('SKIP'
'a541e655f649d43250481394549ef8dc0192fdd1c6b155866f57adce9f172d7c'
'1222f0ea7dc963f3e09db814bacc71d2179232ad582fab8ad0e36cb8a9e69141'
- '5bf73a8aefaa0edd6c73ef6d9042545c9a366c536d8664e2389433fd3e201419'
- '8fdf0e806651bce4cc3241b2ca10320dba9cc5db80673b2253e8e30be36ea00d')
+ '18f1759e8642b2be24a11337eca16f148f80bee88b3270a3bb62c7376b428090'
+ 'cc4c09d90f3c26db239ed159b4b65ddf3ec7b68c044e61ee42c77a1a5fb659de')
pkgver() {
- cd "$srcdir/${_pkgnamesrc}"
- printf "%s" "$(git describe --long --tags --abbrev=7 | sed 's/[-].*$//g')"
+ cd $_pkgnamesrc
+ printf "%s" "$(git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
prepare() {
- cd "$srcdir/${_pkgnamesrc}"
+ cd $_pkgnamesrc
## Look for CORSAIR Controller Device and create UDEV rule file
## Copied nearly verbatim from upstream ./install.sh
- patch -Np1 -i ../package.patch
-
lsusb -d 1b1c: | while read -r line; do
ids=$(echo "$line" | awk '{print $6}')
vendor_id=$(echo "$ids" | cut -d':' -f1)
@@ -57,36 +54,31 @@ prepare() {
}
build() {
- cd "$srcdir/${_pkgnamesrc}"
+ cd $_pkgnamesrc
go build .
}
package() {
## Install package README and LICENSE files
- install -vDm 644 $_pkgnamesrc.sysusers "${pkgdir}"/usr/lib/sysusers.d/$_pkgnamesrc.conf
+ install -Dm 644 $_pkgnamesrc.sysusers "${pkgdir}"/usr/lib/sysusers.d/$_pkgnamesrc.conf
## Install parent folders
- install -vDm 644 $_pkgnamesrc.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/$_pkgnamesrc.conf
+ install -Dm 644 $_pkgnamesrc.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/$_pkgnamesrc.conf
## Install systemd service unit
- install -vDm 644 "$srcdir/${_pkgnamesrc}/${_pkgnamesrc}.service" "${pkgdir}"/usr/lib/systemd/system/$_pkgnamesrc.service
+ install -Dm 644 "${_pkgnamesrc}.service" "${pkgdir}"/usr/lib/systemd/system/$_pkgnamesrc.service
## Install systemd service unit
- install -vDm 644 "$srcdir/${_pkgnamesrc}/${_pkgnamesrc}-udev.rules" "${pkgdir}"/etc/udev/rules.d/99-$_pkgnamesrc.rules
+ install -Dm 644 "${_pkgnamesrc}/${_pkgnamesrc}-udev.rules" "${pkgdir}"/etc/udev/rules.d/99-$_pkgnamesrc.rules
## Install package executable
- install -vDm 755 "$srcdir/${_pkgnamesrc}/${_pkgnamesrc}" "${pkgdir}"/opt/OpenLinkHub/$_pkgnamesrc
-
- ## Install package README and LICENSE files
- cp "$srcdir/${_pkgnamesrc}"/README.md "${pkgdir}"/opt/OpenLinkHub/README.md
- cp "$srcdir/${_pkgnamesrc}"/LICENSE "${pkgdir}"/opt/OpenLinkHub/LICENSE
+ install -Dm 755 "${_pkgnamesrc}/${_pkgnamesrc}" "${pkgdir}"/opt/OpenLinkHub/$_pkgnamesrc
## Install program data
- cp -r "$srcdir/${_pkgnamesrc}"/api/ "${pkgdir}"/opt/OpenLinkHub/api/
- cp -r "$srcdir/${_pkgnamesrc}"/database/ "${pkgdir}"/opt/OpenLinkHub/database/
- cp -r "$srcdir/${_pkgnamesrc}"/static/ "${pkgdir}"/opt/OpenLinkHub/static/
- cp -r "$srcdir/${_pkgnamesrc}"/web/ "${pkgdir}"/opt/OpenLinkHub/web/
+ cp -r "${_pkgnamesrc}"/database/ "${pkgdir}"/opt/OpenLinkHub/database/
+ cp -r "${_pkgnamesrc}"/static/ "${pkgdir}"/opt/OpenLinkHub/static/
+ cp -r "${_pkgnamesrc}"/web/ "${pkgdir}"/opt/OpenLinkHub/web/
chmod -R 755 "${pkgdir}"/opt/OpenLinkHub
chown -R openlinkhub:root "${pkgdir}"/opt/OpenLinkHub