summaryrefslogblamecommitdiff
path: root/user/faad2/APKBUILD
blob: 14b2ea7ccdbaa8304278df97a242b28614f12569 (plain) (tree)
1
2
3
4
5
6
7
8
9
             
             
                         
        
                               
                                  


                                  
          
                   
                                       

                                                                                        




                      
             
                     



                      
                      

                      
                      


                      
                      


                      
         








                                               


           







                                                   

 
                                                                                                                                                                              
# Maintainer:
pkgname=faad2
pkgver=2.10.1_git20230904
pkgrel=0
pkgdesc="ISO AAC audio decoder"
url="https://www.audiocoding.com/"
arch="all"
options="!check"  # No test suite.
license="GPL-2.0+"
depends=""
makedepends="cmake"
subpackages="$pkgname-dev $pkgname-doc"
#source="$pkgname-$pkgver.tar.gz::https://github.com/knik0/faad2/archive/$pkgver.tar.gz"
source="https://distfiles.adelielinux.org/source/$pkgname-$pkgver.tar.gz"

# secfixes:
#   2.8.8-r1:
#     - CVE-2018-19502
#     - CVE-2019-15296
#   2.9.0-r0:
#     - CVE-2019-6956
#     - CVE-2018-19503
#     - CVE-2018-19504
#     - CVE-2018-20194
#     - CVE-2018-20195
#     - CVE-2018-20196
#     - CVE-2018-20197
#     - CVE-2018-20198
#     - CVE-2018-20199
#     - CVE-2018-20357
#     - CVE-2018-20358
#     - CVE-2018-20359
#     - CVE-2018-20360
#     - CVE-2018-20361
#     - CVE-2018-20362

build() {
	cmake \
	  -DCMAKE_INSTALL_PREFIX=/usr \
	  -DCMAKE_INSTALL_LIBDIR=lib \
	  -DBUILD_SHARED_LIBS=True \
	  -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
	  -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
	  -DCMAKE_C_FLAGS="$CFLAGS" \
	  -Bbuild
	make -C build
}

package() {
	make DESTDIR="$pkgdir" -C build install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir"/usr/share/doc
	cp -r "$builddir"/docs \
		"$subpkgdir"/usr/share/doc/$pkgname
}

sha512sums="5ec65a70ebbb5dbb5e0bffa47499f8bb9436c28ce9a8947e9cede92bbb2441117bac01216989888956e245589c9db572dad17cc47d47ae908709e4e57a7f84b9  faad2-2.10.1_git20230904.tar.gz"