Skip to content

Commit

Permalink
feat(qlcplus-qt6-git): switch from qlcplus
Browse files Browse the repository at this point in the history
  • Loading branch information
xiota committed Jan 22, 2025
1 parent 9673390 commit 35e3442
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 76 deletions.
1 change: 1 addition & 0 deletions qlcplus-qt6-git/.CI/config
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI_PKGBUILD_SOURCE=custom
File renamed without changes.
27 changes: 27 additions & 0 deletions qlcplus-qt6-git/.SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
pkgbase = qlcplus-qt6-git
pkgdesc = Q Light Controller Plus to control professional DMX lighting fixtures
pkgver = 4.14.0.r3.g7b60262
pkgrel = 1
url = https://github.com/mcallegari/qlcplus
arch = x86_64
arch = armv7h
license = Apache-2.0
makedepends = cmake
makedepends = git
makedepends = ninja
makedepends = qt6-tools
depends = fftw
depends = libftdi
depends = libmad
depends = libsndfile
depends = qt6-multimedia
depends = qt6-serialport
depends = qt6-svg
depends = qt6-websockets
optdepends = ola: Open Lighting Architecture plugin
provides = qlcplus
conflicts = qlcplus
source = qlcplus::git+https://github.com/mcallegari/qlcplus.git
sha256sums = SKIP

pkgname = qlcplus-qt6-git
5 changes: 5 additions & 0 deletions qlcplus-qt6-git/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[qlcplus-qt6-git]
source = "git"
git = "https://github.com/mcallegari/qlcplus.git"
include_regex = 'QLC\+_[0-9\.]+'
prefix = 'QLC+_'
70 changes: 70 additions & 0 deletions qlcplus-qt6-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Maintainer: aur.chaotic.cx

## links
# http://qlcplus.org/
# https://github.com/mcallegari/qlcplus

_pkgname="qlcplus"
pkgname="$_pkgname-qt6-git"
pkgver=4.14.0.r3.g7b60262
pkgrel=1
pkgdesc="Q Light Controller Plus to control professional DMX lighting fixtures"
url="https://github.com/mcallegari/qlcplus"
license=('Apache-2.0')
arch=('x86_64' 'armv7h')

depends=(
'fftw'
'libftdi'
'libmad'
'libsndfile'
'qt6-multimedia'
'qt6-serialport'
'qt6-svg'
'qt6-websockets'
)
makedepends=(
'cmake'
'git'
'ninja'
'qt6-tools'
)
optdepends=(
'ola: Open Lighting Architecture plugin'
)

provides=("$_pkgname")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
cd "$_pkgsrc"
local _tag _version _revision _hash
_tag=$(git tag | grep -E '^QLC\+_[0-9\.]+$' | sort -rV | head -1)
_version=$(sed -E 's&^[^0-9]*&&' <<< "${_tag:?}")
_revision=$(git rev-list --count --cherry-pick "$_tag"...HEAD)
_hash=$(git rev-parse --short=7 HEAD)
printf '%s.r%s.g%s' "${_version:?}" "${_revision:?}" "${_hash:?}"
}

build() {
local _cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-DQT_VERSION_MAJOR=6
-Wno-dev
)

cmake "${_cmake_options[@]}"
cmake --build build
}

package() {
DESTDIR="$pkgdir" cmake --install build
}
2 changes: 0 additions & 2 deletions qlcplus/.CI/config

This file was deleted.

28 changes: 0 additions & 28 deletions qlcplus/.SRCINFO

This file was deleted.

34 changes: 0 additions & 34 deletions qlcplus/PKGBUILD

This file was deleted.

12 changes: 0 additions & 12 deletions qlcplus/qlcplus.install

This file was deleted.

1 comment on commit 35e3442

@xiota
Copy link
Contributor Author

@xiota xiota commented on 35e3442 Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.