# Zygaena Ports Collection

This repository contains the ports tree for the Zygaena operating system.

## Structure

```
ports/
├── base/       Standard Unix utilities
├── devel/      Development tools & libraries
└── lang/       Programming Languages and libraries
```

## Port Format

Each port consists of:
- `package.toml` - Package metadata (name, version, dependencies, sources)
- `build.sh` - Build script

### Example package.toml

```toml
[package]
name = "example"
version = "1.0.0"
release = 1
description = "Example package"
url = "https://example.com"
license = "BSD-2-Clause"
maintainer = "Your Name <you@example.com>"
arch = "x86_64"

[dependencies]
runtime = ["libc"]
build = ["gcc", "make"]

[sources]
urls = ["https://example.com/example-1.0.0.tar.gz"]
checksums = ["sha256sum_here"]

[build]
parallel = true
```

### Example build.sh

```bash
#!/bin/bash
cd "$WORK_DIR/$PKG_NAME-$PKG_VERSION"
./configure --prefix=/usr
make -j${JOBS:-1}
make DESTDIR="$PKG_DIR" install
```

## Using Ports

Install the Coral package manager, then:

```bash
# Search for a package
coral search vim

# Build a package from port
sudo coral build core/vim

# Install a package
sudo coral install vim
```

## Contributing

1. Fork this repository
2. Create a new port in the appropriate category
3. Test the build: `sudo coral build category/portname`
4. Submit a pull request

## License

BSD-2-Clause
