# Maintainer: Developer <dev@opalos.org>
# Maintainer: Developer <dev@opalos.org>

pkgname=a52dec
pkgver=%version%
pkgrel=%release%
pkgdesc='Library for decoding ATSC A/52 (AC-3) audio streams'
arch=('x86_64')
url='https://git.adelielinux.org/community/a52dec/'
license=('GPL-2.0-or-later')
depends=('glibc')
source=("https://distfiles.adelielinux.org/source/$pkgname/$pkgname-$pkgver.tar.gz")
sha256sums=('03c181ce9c3fe0d2f5130de18dab9bd8bc63c354071515aa56983c74a9cffcc9')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --enable-shared
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
  install -m644 liba52/a52_internal.h "$pkgdir"/usr/include/a52dec/
}
