On Mon, 13 Feb 2023 18:25:43 +0000 Jon Turney wrote: > On 09/02/2023 12:54, Takashi Yano via Cygwin-apps wrote: > > NAME="moc" > > VERSION=2.6.r3005 > > RELEASE=1 > [...] > > SVN_URI="svn://svn.daper.net/moc/trunk" > > SVN_REV="3005" > > inherit svn > > You could (and probably should) write this as > > SVN_REV=${VERSION##*.r} > > so you don't have to remember to update it in both places. > > (See 'Remove matching prefix pattern' in the section 'Parameter > Expansion' in 'man bash') > > > Otherwise, looks good.
Thanks. I revised the cygport file. -- Takashi Yano <takashi.y...@nifty.ne.jp>
NAME="moc" VERSION=2.6.r3005 RELEASE=1 CATEGORY="Audio" SUMMARY="Command-line audio player" DESCRIPTION="MOC (Music on Console) is an audio player having the user interface similar to midnight commander. It supports verious audio formats with decoder plugins. Powerfull and easy to use." HOMEPAGE="http://moc.daper.net/" LICENSE="GPL-2.0-or-later" SVN_URI="svn://svn.daper.net/moc/trunk" SVN_REV="${VERSION##*.r}" inherit svn CYGCONF_ARGS="--without-aac" PKG_NAMES="moc moc-ffmpeg-plugin moc-timidity-plugin" moc_CONTENTS="--exclude=usr/lib/moc/decoder_plugins/libffmpeg_decoder.dll --exclude=usr/lib/moc/decoder_plugins/libtimidity_decoder.dll usr/bin/*.exe usr/share/ usr/lib" moc_ffmpeg_plugin_SUMMARY="MOC FFmpeg plugin" moc_ffmpeg_plugin_CONTENTS="usr/lib/moc/decoder_plugins/libffmpeg_decoder.dll" moc_timidity_plugin_SUMMARY="MOC timidity plugin" moc_timidity_plugin_CONTENTS="usr/lib/moc/decoder_plugins/libtimidity_decoder.dll" DIFF_EXCLUDES="m4 libltdl" BUILD_REQUIRES="libffmpeg-devel libid3tag-devel libmad-devel flac-devel libsndfile-devel libvorbis-devel libcurl-devel libdb-devel libncurses-devel libpopt-devel libtool libmodplug-devel speex-devel libmpcdec-devel libtag_c-devel libwavpack-devel"