34 lines
941 B
Bash
34 lines
941 B
Bash
pkgname=looper-git
|
|
pkgrel=1
|
|
pkgdesc="An audio player that can loop audio files"
|
|
arch=( x86_64 aarch64 )
|
|
url="https://complecwaft.com/catmeow/looper"
|
|
license=("GPL-3.0-or-later OR MIT")
|
|
source=(
|
|
'looper::git+https://complecwaft.com/catmeow/neko-player.git'
|
|
)
|
|
sha256sums=(
|
|
'SKIP'
|
|
)
|
|
provides=('looper')
|
|
conflicts=('looper-gpl-git')
|
|
makedeps=( cmake )
|
|
depends=( opus wavpack libmodplug ffmpeg fluidsynth sdl2 sdl2_image gtkmm-4.0 libportal sdbus-cpp soundtouch )
|
|
pkgver=r125.b80f203
|
|
pkgver() {
|
|
cd "looper"
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
|
}
|
|
prepare() {
|
|
cd "looper"
|
|
git submodule update --init --recursive
|
|
}
|
|
build() {
|
|
cmake -DCMAKE_BUILD_TYPE='None' -DCMAKE_INSTALL_PREFIX='/usr' -Wno-dev -B build -S looper -DMIXERX_ENABLE_LGPL=ON -DMIXERX_ENABLE_GPL=OFF -DDOWNLOAD_AUDIO_CODECS_DEPENDENCY=OFF ..
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir"
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|