# $Id$
# Maintainer: MediaArea.net SARL <info@mediaarea.net>

pkgname=('rawcooked')
pkgver=25.12.20260815
pkgrel=1
pkgdesc="Encodes RAW audio-visual data while permitting reversibility"
url="http://mediaarea.net"
license=('BSD-2-Clause')
source=(${pkgname}_${pkgver}-1.tar.gz)
md5sums=('00000000000000000000000000000000')
arch=('i686' 'x86_64')

prepare() {

    cd "${srcdir}"/rawcooked-"${pkgver}"/Project/GNU/CLI
    sh ./autogen
    ./configure --prefix=/usr
}

build() {
    cd "${srcdir}"/rawcooked-"${pkgver}"/Project/GNU/CLI
    make
}

package_rawcooked() {
    pkgdesc="${pkgdesc} (CLI)"
    depends=('libzen')

    cd "${srcdir}"/rawcooked-"${pkgver}"/Project/GNU/CLI
    make DESTDIR="${pkgdir}" install

    install -D -m 0644 "${srcdir}"/rawcooked-"${pkgver}"/History_CLI.txt "${pkgdir}"/usr/share/docs/${pkgname}/History.txt
    install -D -m 0644 "${srcdir}"/rawcooked-"${pkgver}"/License.html "${pkgdir}"/usr/share/licenses/${pkgname}/License.html
}
