[source]
git = "https://github.com/PistonDevelopers/freetype-sys.git"
[build]
template = "custom"
dependencies = [
    "freetype2",
    "zlib",
    "libpng"
]

script = """
    # export PKG_CONFIG_PATH="${COOKBOOK_SYSROOT}/lib/pkgconfig"
    # #:${COOKBOOK_SYSROOT}/usr/lib/pkgconfig:${COOKBOOK_SYSROOT}/usr/share/pkgconfig"
    # export PKG_CONFIG_LIBDIR="${COOKBOOK_SYSROOT}/lib/pkgconfig"
    # #:${COOKBOOK_SYSROOT}/usr/lib/pkgconfig"
    # export PKG_CONFIG_SYSROOT_DIR="${COOKBOOK_SYSROOT}"

    # # I'm tired trying figure out why multiple pkgconfig paths are ignored by cargo building stuff
    # # rsync -a -v ${COOKBOOK_SYSROOT}/usr/share/pkgconfig/*.pc ${COOKBOOK_SYSROOT}/lib/pkgconfig/
    # rsync -a -v ${COOKBOOK_SYSROOT}/usr/lib/pkgconfig/*.pc ${COOKBOOK_SYSROOT}/lib/pkgconfig/

    # ls -al $PKG_CONFIG_PATH

    # env

    rsync -a --delete "${COOKBOOK_SOURCE}/" ./
    cargo build --release
"""
