diff options
author | Alexandros Theodotou | 2019-04-12 04:46:06 +0100 |
---|---|---|
committer | Alexandros Theodotou | 2019-04-12 04:46:06 +0100 |
commit | 57e56de48e5cc789fbc8f0191df99eda15cd7082 (patch) | |
tree | eff9ab61901c2bef51f298dc84bf0c06e78e874b | |
parent | d69f78fe5a61e7f5588077a1acfc8988870a6c68 (diff) | |
download | aur-57e56de48e5cc789fbc8f0191df99eda15cd7082.tar.gz |
add create hard link patch
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | create_hard_link.patch | 18 |
3 files changed, 24 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = mingw-w64-lilv pkgdesc = A C library interface to the LV2 plug-in standard pkgver = 0.24.4 - pkgrel = 2 + pkgrel = 3 url = https://drobilla.net/software/lilv/ arch = any license = custom:ISC @@ -6,7 +6,7 @@ _pkgbase=lilv pkgname=mingw-w64-lilv pkgver=0.24.4 -pkgrel=2 +pkgrel=3 pkgdesc="A C library interface to the LV2 plug-in standard" arch=('any') url="https://drobilla.net/software/lilv/" @@ -27,6 +27,8 @@ prepare() { cd "${_pkgbase}-${pkgver}" # don't run local ldconfig sed -i "/ldconfig/d" wscript + + patch --forward --strip=1 --input="${srcdir}/create_hard_link.patch" } build() { @@ -37,8 +39,8 @@ build() { cp -r "${_pkgbase}-${pkgver}" build-${_arch} pushd build-${_arch} - CC="$_arch-gcc" python waf configure --prefix=/usr/"$_arch" \ - --bindings \ + CC="$_arch-gcc" CXX="$_arch-g++" python waf configure --prefix=/usr/"$_arch" \ + #--bindings \ --no-bash-completion \ --dyn-manifest #\ #--test diff --git a/create_hard_link.patch b/create_hard_link.patch new file mode 100644 index 000000000000..f960a9fdcf9e --- /dev/null +++ b/create_hard_link.patch @@ -0,0 +1,18 @@ +diff --git a/src/util.c b/src/util.c +index 4973181..32900f7 100644 +--- a/src/util.c ++++ b/src/util.c +@@ -465,10 +465,10 @@ lilv_symlink(const char* oldpath, const char* newpath) + int ret = 0; + if (strcmp(oldpath, newpath)) { + #ifdef _WIN32 +- ret = !CreateSymbolicLink(newpath, oldpath, 0); +- if (ret) { ++ /*ret = !CreateSymbolicLink(newpath, oldpath, 0);*/ ++ /*if (ret) {*/ + ret = !CreateHardLink(newpath, oldpath, 0); +- } ++ /*}*/ + #else + ret = symlink(oldpath, newpath); + #endif |