diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2018-04-02 15:06:55 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2018-04-02 15:06:55 +1000 |
commit | 237702073d45aa9be7ddca5d84c0d0f6ed1ae284 (patch) | |
tree | bc9f9d17bd750e9a3cb3d71b84837170de4930cd /brotli/Pkgfile | |
parent | b8229ddb2b55e437c53a2460c4dbd92ae7600fb9 (diff) | |
download | opt-237702073d45aa9be7ddca5d84c0d0f6ed1ae284.tar.gz opt-237702073d45aa9be7ddca5d84c0d0f6ed1ae284.tar.xz |
brotli: contrib -> opt
Diffstat (limited to 'brotli/Pkgfile')
-rw-r--r-- | brotli/Pkgfile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/brotli/Pkgfile b/brotli/Pkgfile new file mode 100644 index 000000000..0617cf65e --- /dev/null +++ b/brotli/Pkgfile @@ -0,0 +1,23 @@ +# Description: Brotli compression library +# URL: https://github.com/google/brotli +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: cmake + +name=brotli +version=1.0.2 +release=1 +source=(https://github.com/google/$name/archive/v$version/$name-v$version.tar.gz) + +build() { + cd $name-$version + + install -d $SRC/build + cd $SRC/build + + cmake $SRC/$name-$version \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCMAKE_INSTALL_LIBDIR="/usr/lib" + + make + make DESTDIR=$PKG install +} |