Skip to content

Commit

Permalink
Add gocommands recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
iychoi committed Apr 13, 2023
1 parent abe90b0 commit 0f8e9a2
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
13 changes: 13 additions & 0 deletions recipes/gocommands/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright (c) 2010-2023, The Arizona Board of Regents on behalf of The University of Arizona

All rights reserved.

Developed by: CyVerse as a collaboration between participants at BIO5 at The University of Arizona (the primary hosting institution), Cold Spring Harbor Laboratory, The University of Texas at Austin, and individual contributors. Find out more at http://www.cyverse.org/.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of CyVerse, BIO5, The University of Arizona, Cold Spring Harbor Laboratory, The University of Texas at Austin, nor the names of other contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
6 changes: 6 additions & 0 deletions recipes/gocommands/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if not exist "%PREFIX%\bin" (
mkdir "%PREFIX%\bin"
if errorlevel 1 exit 1
)

copy %SRC_DIR%\gocmd %PREFIX%\bin\gocmd
2 changes: 2 additions & 0 deletions recipes/gocommands/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mkdir -p ${PREFIX}/bin
cp ${SRC_DIR}/gocmd ${PREFIX}/bin/gocmd
45 changes: 45 additions & 0 deletions recipes/gocommands/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{% set name = "gocommands" %}
{% set version = "0.6.4" %}
{% set git_repo = "https://github.com/cyverse/gocommands" %}
{% set release_url = "https://github.com/cyverse/gocommands/releases" %}

package:
name: {{ name }}
version: {{ version }}

source:
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-darwin-amd64.tar.gz # [osx and x86_64]
md5: f41aeca3e44dd997e52cf55a30a3c0ba # [osx and x86_64]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-darwin-arm64.tar.gz # [arm64]
md5: 3101783333e0b834cb78db9eae4599b6 # [arm64]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-linux-386.tar.gz # [linux32]
md5: 68a0376fe0a7363869e9c5a565a91355 # [linux32]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-linux-amd64.tar.gz # [linux64]
md5: 8e1f7edeab149458effef09d015d9836 # [linux64]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-linux-arm.tar.gz # [linux and (armv7l or arm6l)]
md5: 8e83aa405d24497da46635b2f570c7d6 # [linux and (armv7l or arm6l)]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-linux-arm64.tar.gz # [aarch64]
md5: d1dfd9c73773950d37b2ec7a1dc4b872 # [aarch64]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-windows-386.tar.gz # [win32]
md5: 65e39ae85d18e59d18f3220dbf5e7ec7 # [win32]
url: {{ release_url }}/download/v{{ version }}/gocmd-v{{ version }}-windows-amd64.tar.gz # [win64]
md5: 1fbe88100c569913714c8071c81e6c56 # [win64]

build:
number: 0
overlinking_ignore_patterns:
- "bin/*"
binary_relocation: False

test:
commands:
- gocmd --version # [build_platform == target_platform]

about:
home: {{ git_repo }}
license_file: LICENSE
summary: A protable command-line toolkit for iRODS

extra:
recipe-maintainers:
- Illyoung Choi

0 comments on commit 0f8e9a2

Please sign in to comment.