mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 03:44:39 +08:00
39 lines
989 B
Bash
39 lines
989 B
Bash
|
# Arch contributor: https://projects.archlinux.org/svntogit/packages.git/plain/trunk/PKGBUILD?h=packages/libwebp
|
||
|
|
||
|
pkgname=libwebp
|
||
|
pkgver=0.5.0
|
||
|
pkgrel=1
|
||
|
pkgdesc="WebP library and conversion tools"
|
||
|
arch=(x86_64 i686)
|
||
|
url="https://developers.google.com/speed/webp/"
|
||
|
license=(BSD)
|
||
|
depends=(libpng libjpeg libtiff giflib)
|
||
|
makedepends=(freeglut mesa glu)
|
||
|
optdepends=('freeglut: vwebp viewer')
|
||
|
source=("http://downloads.webmproject.org/releases/webp/$pkgname-$pkgver.tar.gz")
|
||
|
sha256sums=('5cd3bb7b623aff1f4e70bd611dc8dbabbf7688fd5eb225b32e02e09e37dfb274')
|
||
|
|
||
|
prepare() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
|
||
|
./configure --prefix=/usr \
|
||
|
--enable-swap-16bit-csp \
|
||
|
--enable-experimental \
|
||
|
--enable-libwebp{mux,demux,decoder,extras} \
|
||
|
--disable-static
|
||
|
make
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd "$srcdir/$pkgname-$pkgver"
|
||
|
|
||
|
make DESTDIR="$pkgdir/" install
|
||
|
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
|
||
|
}
|
||
|
|
||
|
# vim:set ts=2 sw=2 et:
|