rhash: Fix creating symlinks during install

This commit is contained in:
Alexey Pavlov
2017-11-17 08:14:11 +03:00
parent 022617348b
commit 41f5a67f97
2 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
--- rhash-1.3.5/Makefile.orig 2017-11-17 07:54:50.450792800 +0300
+++ rhash-1.3.5/Makefile 2017-11-17 07:56:16.689351900 +0300
@@ -130,8 +130,8 @@
# dependencies should be properly set, otherwise 'make -j<n>' can fail
install-symlinks: mkdir-bin install-man
- for f in $(SYMLINKS); do ln -fs rhash $(DESTDIR)$(BINDIR)/$$f; done
- cd $(DESTDIR)$(MANDIR)/man1 && for f in $(SYMLINKS); do ln -fs rhash.1* $$f.1; done
+ for f in $(SYMLINKS); do cp -f rhash.exe $(DESTDIR)$(BINDIR)/$$f.exe; done
+ cd $(DESTDIR)$(MANDIR)/man1 && for f in $(SYMLINKS); do cp -f rhash.1* $$f.1; done
uninstall-binary:
rm -f $(DESTDIR)$(BINDIR)/$(PROGNAME)

View File

@@ -8,10 +8,12 @@ url='http://rhash.anz.ru/?l=en'
license=('custom' 'MIT')
arch=('i686' 'x86_64')
source=("https://downloads.sourceforge.net/rhash/rhash-$pkgver-src.tar.gz"
001-mingw-cygwin-msys.patch)
001-mingw-cygwin-msys.patch
002-fix-symlinks.patch)
makedepends=('openssl-devel')
sha256sums=('98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e'
'6d9cffe4dc72ee88df9f4364586c4d7c9f8a295a482abc26dd709bafc5af6d11')
'6d9cffe4dc72ee88df9f4364586c4d7c9f8a295a482abc26dd709bafc5af6d11'
'8d1c0c742c2beb95dbb465e2936820429739384a63131e82c1d95d528f74e382')
_make_params="CC=/usr/bin/gcc AR=/usr/bin/ar IS_WIN=yes DLLNAME_PREFIX=msys- ADDCFLAGS=-DOPENSSL_RUNTIME"
@@ -38,7 +40,8 @@ del_file_exists() {
prepare() {
cd ${srcdir}/RHash-${pkgver}
apply_patch_with_msg \
001-mingw-cygwin-msys.patch
001-mingw-cygwin-msys.patch \
002-fix-symlinks.patch
}
build() {