Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions recipes/libxar/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2005-2007 Rob Braun
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. 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.
* 3. Neither the name of Rob Braun nor the names of his 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 OWNER 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.
*/
/*
* 03-Apr-2005
* DRI: Rob Braun <bbraun@synack.net>
*/

8 changes: 8 additions & 0 deletions recipes/libxar/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

set -ex

cd xar
./configure --prefix="$PREFIX"
make
make install
2 changes: 2 additions & 0 deletions recipes/libxar/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
MACOSX_DEPLOYMENT_TARGET: # [osx and x86_64]
- 10.12 # [osx and x86_64]
48 changes: 48 additions & 0 deletions recipes/libxar/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% set version = "1.8" %}

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

source:
# need to check sources for actual version number
# https://github.com/apple-oss-distributions/xar/blob/main/xar/configure.ac#L10-L11
url: https://github.com/apple-oss-distributions/xar/archive/refs/tags/xar-482.tar.gz
sha256: 03ae7f6201d2586be03681feb06e32a2ddee08fe59c4002759c354c86964f62d

build:
number: 0
skip: true # [win]

requirements:
build:
- {{ compiler('c') }}
- make
host:
- openssl # [linux]
run:
- openssl # [linux]
test:
commands:
# shared
- test -f $PREFIX/lib/libxar.so # [linux]
- test -f $PREFIX/lib/libxar.dylib # [osx]

# absence of static libraries
- test ! -f $PREFIX/lib/libxar.a

# header
- test -f $PREFIX/include/xar.h # [unix]

about:
home: https://github.com/apple-oss-distributions/xar
license: BSD-3-Clause
license_file: LICENSE
summary: eXtensible ARchiver
# original project is https://code.google.com/archive/p/xar/, but patched by apple
dev_url: https://github.com/apple-oss-distributions/xar

extra:
recipe-maintainers:
- h-vetinari
- isuruf