makedepends=(ghostscript cups libexif qpdf poppler libjpeg-turbo2 libpng libtiff lcms2 xorg-fontconfig dbus)

description="OpenPrinting CUPS Filters - contains all the code of the filters of the former cups-filters"
url="https://github.com/OpenPrinting/libcupsfilters"

packager="Great-OS Team"
maintainer="Great-OS Team"

name="libcupsfilters"
version="2.1.1"
release=3

source=(https://github.com/OpenPrinting/libcupsfilters/releases/download/$version/libcupsfilters-$version.tar.xz)
build() { 
    cd "$name"-$version

    ./configure --prefix=/usr \
                --sysconfdir=/etc \
                --localstatedir=/var --disable-mutool

    sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool;
    make
    make DESTDIR="$PKG/" install
}
