#!/usr/bin/env bash name='menu-cache' release='1' version='1.1.0' url='https://example.org' description='Caching mechanism for freedesktop.org compliant menus' email='bk@gmail.com' maintainer='bk' license=('GPLv3') source=("https://github.com/lxde/menu-cache/archive/refs/tags/$version.tar.gz" 'menu-cache-1.1.0-0001-Support-gcc10-compilation.patch') depends=(libfm) makedepends=() md5sums=('8630de9fcb97c9ca9b13eccec5b35efa' 'SKIP') group=() uses=() arch=('x86_64') cd $name-$version prepare(){ patch -Np1 -i ../menu-cache-1.1.0-0001-Support-gcc10-compilation.patch } setup(){ autoreconf -fvi ./configure --prefix=/usr \ --libdir=/usr/lib64/ } build(){ make $jobs } package(){ make install $jobs }