diff options
author | John Regan | 2020-12-08 16:17:31 -0500 |
---|---|---|
committer | John Regan | 2020-12-08 16:17:31 -0500 |
commit | 1e573cf8b31d2fee09d687cee16a269c2e2eb042 (patch) | |
tree | ede99e3076b470fcef94610c76c8cdf2cab8a536 | |
parent | 7b3b9e0591f78261b96bbe33940f66faf6e3f160 (diff) | |
download | aur-1e573cf8b31d2fee09d687cee16a269c2e2eb042.tar.gz |
updates
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | libvgm-fix-strncasecmp.patch | 26 |
3 files changed, 40 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = libvgm-git pkgdesc = Library for decoding and playing VGM files - pkgver = r413.49e9450 + pkgver = r447.dd7acb8 pkgrel = 1 url = https://github.com/ValleyBell/libvgm arch = x86_64 @@ -13,7 +13,9 @@ pkgbase = libvgm-git makedepends = git makedepends = cmake source = git+https://github.com/ValleyBell/libvgm.git + source = libvgm-fix-strncasecmp.patch md5sums = SKIP + md5sums = e6535e390c4a689744cde3e3286c2355 pkgname = libvgm-player-git pkgdesc = libvgm player library @@ -1,7 +1,7 @@ # Maintainer: John Regan <john@jrjrtech.com> pkgname=('libvgm-player-git' 'libvgm-emu-git' 'libvgm-utils-git' 'libvgm-audio-git' 'libvgm-common-git' 'vgm2wav-git' 'vgmplayer-git') pkgbase=libvgm-git -pkgver=r413.49e9450 +pkgver=r447.dd7acb8 pkgrel=1 pkgdesc="Library for decoding and playing VGM files" arch=(x86_64 i686) @@ -9,9 +9,11 @@ url="https://github.com/ValleyBell/libvgm" license=('GPL') makedepends=('zlib' 'alsa-lib' 'libpulse' 'libao' 'git' 'cmake') -source=('git+https://github.com/ValleyBell/libvgm.git') +source=('git+https://github.com/ValleyBell/libvgm.git' +'libvgm-fix-strncasecmp.patch') -md5sums=('SKIP') +md5sums=('SKIP' +'e6535e390c4a689744cde3e3286c2355') pkgver() { cd "$srcdir/${pkgbase%-git}" @@ -19,12 +21,17 @@ pkgver() { printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + cd "$srcdir/${pkgbase%-git}" + patch --forward --strip=1 --input="${srcdir}/libvgm-fix-strncasecmp.patch" +} + build() { cd "$srcdir/${pkgbase%-git}" rm -rf build mkdir build cd build - cmake -DLIBRARY_TYPE=SHARED -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=TRUE -DCMAKE_INSTALL_PREFIX=/usr .. + cmake -DLIBRARY_TYPE=SHARED -DCMAKE_BUILD_TYPE=Debug -DCMAKE_SKIP_BUILD_RPATH=TRUE -DCMAKE_INSTALL_PREFIX=/usr .. make } diff --git a/libvgm-fix-strncasecmp.patch b/libvgm-fix-strncasecmp.patch new file mode 100644 index 000000000000..0f078344764e --- /dev/null +++ b/libvgm-fix-strncasecmp.patch @@ -0,0 +1,26 @@ +From 5cb65a74bacb0fec100cd49b438a19aba905693a Mon Sep 17 00:00:00 2001 +From: John Regan <john@jrjrtech.com> +Date: Tue, 8 Dec 2020 16:10:28 -0500 +Subject: [PATCH] strutils: use strcasecmp/strncasecmp on non-windows + +--- + utils/StrUtils-CPConv_IConv.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/utils/StrUtils-CPConv_IConv.c b/utils/StrUtils-CPConv_IConv.c +index 51d582c..3769547 100644 +--- a/utils/StrUtils-CPConv_IConv.c ++++ b/utils/StrUtils-CPConv_IConv.c +@@ -10,6 +10,12 @@ + #define strdup _strdup + #define stricmp _stricmp + #define strnicmp _strnicmp ++#else ++#ifdef _POSIX_C_SOURCE ++#include <strings.h> ++#endif ++#define stricmp strcasecmp ++#define strnicmp strncasecmp + #endif + + #include <iconv.h> |