summaryrefslogblamecommitdiff
path: root/user/libwebp/APKBUILD
blob: 215b3b850b9236b351eb89446645807f0fd850e3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 

               
            



                                                
                      
          

                                                              
                                                                                                      

         











                                       



                  










                                                                      
                                                                                                                                                                   
# Contributor: Sheila Aman <sheila@vulpine.house>
# Maintainer: 
pkgname=libwebp
pkgver=1.0.3
pkgrel=0
pkgdesc="Libraries for working with WebP images"
url="https://developers.google.com/speed/webp/"
arch="all"
license="BSD-3-Clause"
depends=""
makedepends="libpng-dev libjpeg-turbo-dev tiff-dev giflib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-tools"
source="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-static \
		--enable-libwebpmux \
		--enable-libwebpdemux \
		--enable-libwebpdecoder
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	mkdir -p "$pkgdir"/usr/share/doc/$pkgname
	install -Dm644 PATENTS README "$pkgdir"/usr/share/doc/$pkgname
}

tools() {
	pkgdesc="The WebP command line tools"
	mkdir -p "$subpkgdir"/usr/
	mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}

sha512sums="3ccdc62e5906f8de791053560e932b39df3cfdd7793617bd4562b7d95e2f6feac1535bc035e1b02591cab14b117ab15e51af6f9e4e3af1df0869c63945ec86b9  libwebp-1.0.3.tar.gz"