import 'compile/cmake'

name=openal-soft
version=1.17.2
update_url="https://github.com/kcat/$name/releases"

dlextract "https://github.com/kcat/$name/archive/$name-$version.tar.gz" \
          '8b23942c4e9a2fc3485b00fd06b0ddd5'
header_end

cd "$name-$name-$version"

# Fix paths
sed -i -e "/DESTINATION/s/bin/\"$(safe_sed "$dir_bindir")\"/" \
       -e "/DESTINATION/s/lib\${LIB_SUFFIX}/$(safe_sed "$dir_libdir")/" CMakeLists.txt

compile_cmake -- -DSHARE_INSTALL_DIR="/$dir_prefix/$dir_datadir"

# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: