From e6522557d464903eb3ec954e8e38e34ba5b0a657 Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Thu, 26 Dec 2024 16:34:45 -0800 Subject: [PATCH] Add Looper packages --- looper-git/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ looper-git/looper.install | 6 ++++++ looper-gpl-git/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ looper-gpl-git/looper.install | 6 ++++++ 4 files changed, 82 insertions(+) create mode 100644 looper-git/PKGBUILD create mode 100644 looper-git/looper.install create mode 100644 looper-gpl-git/PKGBUILD create mode 100644 looper-gpl-git/looper.install diff --git a/looper-git/PKGBUILD b/looper-git/PKGBUILD new file mode 100644 index 0000000..30d234f --- /dev/null +++ b/looper-git/PKGBUILD @@ -0,0 +1,35 @@ +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 ) +install=looper.install +depends=( opus wavpack libmodplug ffmpeg fluidsynth sdl2 sdl2_image gtkmm-4.0 libportal sdbus-cpp soundtouch uriparser expat protobuf xdg-utils ) +pkgver=r280.93ba23c +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='RelWithDebInfo' -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 +} diff --git a/looper-git/looper.install b/looper-git/looper.install new file mode 100644 index 0000000..065b36b --- /dev/null +++ b/looper-git/looper.install @@ -0,0 +1,6 @@ +post_install() { + xdg-mime install /usr/share/mime/audio/x-zsound.xml +} +pre_remove() { + xdg-mime uninstall /usr/share/mime/audio/x-zsound.xml +} diff --git a/looper-gpl-git/PKGBUILD b/looper-gpl-git/PKGBUILD new file mode 100644 index 0000000..b51de0e --- /dev/null +++ b/looper-gpl-git/PKGBUILD @@ -0,0 +1,35 @@ +pkgname=looper-gpl-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-git') +makedeps=( cmake ) +depends=( opus wavpack libmodplug ffmpeg fluidsynth sdl2 sdl2_image gtkmm-4.0 libportal sdbus-cpp soundtouch uriparser expat protobuf xdg-utils ) +pkgver=r280.93ba23c +install=looper.install +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='RelWithDebInfo' -DCMAKE_INSTALL_PREFIX='/usr' -Wno-dev -B build -S looper -DMIXERX_ENABLE_LGPL=ON -DMIXERX_ENABLE_GPL=ON -DDOWNLOAD_AUDIO_CODECS_DEPENDENCY=OFF .. + cmake --build build +} + +package() { + cd "$srcdir" + DESTDIR="$pkgdir" cmake --install build +} diff --git a/looper-gpl-git/looper.install b/looper-gpl-git/looper.install new file mode 100644 index 0000000..065b36b --- /dev/null +++ b/looper-gpl-git/looper.install @@ -0,0 +1,6 @@ +post_install() { + xdg-mime install /usr/share/mime/audio/x-zsound.xml +} +pre_remove() { + xdg-mime uninstall /usr/share/mime/audio/x-zsound.xml +}