import 'compile/configure' name=i3 version=4.14 update_url='http://i3wm.org/downloads/' define_option '!gaps: Use the i3-gaps fork' define_option '!patch: Apply some custom patches' if option gaps; then dlextract "https://github.com/Airblader/$name/archive/$version/$name-gaps-$version.tar.gz" \ 'beb3840ab70e0dbce64c49ddffe13601' else dlextract "http://i3wm.org/downloads/$name-$version.tar.bz2" \ 'ad134ada9972943b799feaddfb1f3121' fi option patch extrafile "$name-$version-window-icons.patch" _ cd "$name-$version" option patch patch -p1 -i "../$name-$version-window-icons.patch" if option gaps; then autoreconf -fi compile_configure -b build -- --srcdir=.. --disable-sanitizers else compile_configure -b build -- --srcdir=.. fi # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: