-
-
Notifications
You must be signed in to change notification settings - Fork 340
Expand file tree
/
Copy pathPKGBUILD
More file actions
80 lines (73 loc) · 1.98 KB
/
PKGBUILD
File metadata and controls
80 lines (73 loc) · 1.98 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# This PKGBUILD is intended for our github workflows. For building your custom packages use the file PKGBUILD_AUR
# Contributor: Wellington <wellingtonwallace@gmail.com>
# Maintainer: Upstream https://github.com/wwmm/easyeffects
pkgname=easyeffects-git
pkgver=pkgvernotupdated
pkgrel=1
pkgdesc='Simple audio effects'
arch=(x86_64)
url='https://github.com/wwmm/easyeffects'
license=('GPL3')
depends=(
'kcolorscheme'
'kirigami'
'kirigami-addons'
'kiconthemes'
'kconfigwidgets'
'qqc2-desktop-style'
'breeze-icons'
'qt6-base'
'qt6-graphs'
'pipewire-pulse'
'lilv'
'libsndfile'
'zita-convolver'
'libebur128'
'rnnoise'
'soundtouch'
'libbs2b'
'nlohmann-json'
'tbb'
'speexdsp'
'gsl'
'webrtc-audio-processing'
'libmysofa'
)
makedepends=('cmake' 'extra-cmake-modules' 'git' 'ninja' 'intltool' 'appstream' 'mold' 'ladspa')
optdepends=('calf: limiter, exciter, bass enhancer and others'
'lsp-plugins: equalizer, compressor, delay, loudness'
'zam-plugins: maximizer'
'mda.lv2: bass loudness'
'libdeep_filter_ladspa: noise remover'
'breeze: kde breeze style')
conflicts=(easyeffects)
provides=(easyeffects)
replaces=('pulseeffects')
sha512sums=()
pkgver() {
description=$(git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
# if in github actions environment
if test -f "../GITHUB_COMMIT_DESC"; then
# remove last commit from git describe output (which may sometimes be a merge commit),
# and replace it with a human friendly version
description_short=$(echo "$description" | sed -r 's/(.*)\..*/\1/')
github_commit_desc_no_hyphen=$(sed 's/-/./g' ../GITHUB_COMMIT_DESC)
printf "%s" "${description_short}.${github_commit_desc_no_hyphen}"
else
printf "%s" "$description"
fi
}
build() {
cd ..
cmake \
-B build \
-S . \
-G Ninja \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-Wno-dev
cmake --build build
}
package() {
cd ..
DESTDIR="${pkgdir}" cmake --install build
}