summaryrefslogtreecommitdiff
path: root/repo/media/libwebp/libwebp.xibuild
blob: ff84576c9b45093a4b06bb7f73f169e23d7a16b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh

NAME="libwebp"
DESC="Libraries for working with WebP images"

MAKEDEPS="make "
DEPS="musl "

PKG_VER=1.2.2
SOURCE="https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-$PKG_VER.tar.gz"

prepare() {
	./autogen.sh
}

build () {
    ./configure \
        --prefix=/usr
        --bindir=/usr/bin \
        --sysconfdir=/etc \
        --disable-static \
        --enable-libwebpmux \
		--enable-libwebpdemux \
		--enable-libwebpdecoder \
		--disable-tiff 
    make
}

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