void-packages/srcpkgs/musikcube/template
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: convert patches to -Np1
```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

58 lines
1.7 KiB
Bash

# Template file for 'musikcube'
pkgname=musikcube
version=0.96.7
revision=1
build_style=cmake
make_cmd=make
configure_args="-DNO_NCURSESW=1 -DENABLE_SNDIO=true -DDISABLE_STRIP=true
-DENABLE_PIPEWIRE=true -DENABLE_BUNDLED_TAGLIB=false"
hostmakedepends="pkg-config"
makedepends="boost-devel libogg-devel libmicrohttpd-devel ffmpeg-devel
openssl-devel pulseaudio-devel lame-devel zlib-devel alsa-lib-devel
libvorbis-devel libcurl-devel ncurses-devel libev-devel taglib-devel
sndio-devel pipewire-devel"
short_desc="Terminal-based music player in c++"
maintainer="eater <=@eater.me>"
license="BSD-3-Clause"
homepage="https://musikcube.com/"
distfiles="https://github.com/clangen/musikcube/archive/${version}.tar.gz"
checksum=81922ec6e86c06061dc009be3ec7c4bc8e8fd5ed3bb92231dabede8bbccaf723
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
configure_args+=" -DCMAKE_EXE_LINKER_FLAGS='-latomic'"
fi
export CMAKE_GENERATOR="Unix Makefiles"
#XXX: Otherwise xbps-install ffmpeg-devel will complain about unresolving shlibs
# SDL2-2.0.10_3: broken, unresolvable shlib 'libGL.so.1'
makedepends+=" libglvnd"
post_install() {
vlicense LICENSE.txt
}
musikcube-devel_package() {
depends="musikcube-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
}
}
musikcube-sndio_package() {
depends="musikcube>=${version}_${revision}"
short_desc+=" - sndio output plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libsndioout.so
}
}
musikcube-pipewire_package() {
depends="musikcube>=${version}_${revision}"
short_desc+=" - pipewire output plugin"
pkg_install() {
vmove usr/lib/musikcube/plugins/libpipewireout.so
}
}