Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
lebedov committed Mar 26, 2019
1 parent 5fb529b commit 1089746
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
11 changes: 11 additions & 0 deletions recipes/vcsh/Makefile.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- Makefile.bak 2019-03-07 11:14:06.155077049 -0500
+++ Makefile 2019-03-07 11:14:24.787076792 -0500
@@ -9,7 +9,7 @@

all: $(all)

-install: all
+install:
install -d $(DESTDIR)$(PREFIX)/bin
install -m 0755 $(self) $(DESTDIR)$(PREFIX)/bin
install -d $(DESTDIR)$(PREFIX)/share/man/man1
8 changes: 6 additions & 2 deletions recipes/vcsh/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@ source:
fn: vcsh-{{version}}.tar.gz
url: https://github.com/RichiH/vcsh/archive/v{{version}}.tar.gz
sha256: ae069506b0490287aefa582ab4e6af1c7ebc4dca743b17d91e0c8d0327d7a3fa
patches:
- Makefile.patch

build:
number: {{build}}
noarch: generic
script:
- PERL_MM_USE_DEFAULT=1 PERL_EXTUTILS_AUTOINSTALL="--defaultdeps" perl -MCPAN -e 'install Shell::Command; install Test::Most'
- PREFIX=$PREFIX make install

requirements:
build:
- perl
- git
run:
- git

test:
commands:
- vcsh -h

about:
home: https://github.com/RichiH/vcsh
license: GPL-2.0
Expand Down

0 comments on commit 1089746

Please sign in to comment.