32 lines
795 B
Text
Executable file
32 lines
795 B
Text
Executable file
APP=woff2
|
|
VERSION=1.0.2
|
|
BUILD=1sml
|
|
HOMEPAGE="https://github.com/google/iwoff2/"
|
|
DOWNLOAD="https://github.com/google/woff2/archive/v1.0.2/woff2-1.0.2.tar.gz"
|
|
DESC="font compression and decompression library in C++"
|
|
REQUIRES="gcc-libs brotli"
|
|
|
|
build() {
|
|
mkandenterbuilddir
|
|
rm -rf $APP-$VERSION
|
|
|
|
tar xf $SRCDIR/$APP-$VERSION.tar.?z*
|
|
cd $APP-$VERSION
|
|
fixbuilddirpermissions
|
|
|
|
sed -i "s/NOT BUILD_SHARED_LIBS/TRUE/" CMakeLists.txt
|
|
mkdir -p smbuild && cd smbuild
|
|
cmake .. -GNinja \
|
|
-DCMAKE_INSTALL_PREFIX="" \
|
|
-DCMAKE_INSTALL_LIBDIR=lib
|
|
|
|
DESTDIR="$PKG" ninja install
|
|
|
|
cp ../LICENSE $PKGDOCS/
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
SHA512SUMS="
|
|
7315c05853540c34be1d2223a7999df63518ebe8341ced45ce37d72f2277435653e9c8251c991fd330ab94a16fd77aaa71db281536f175e8ac34cde2668f3471 woff2-1.0.2.tar.lz
|
|
"
|