makedepends=( gtk3 startup-notification udisks2 wget dbus shared-mime-info desktop-file-utils xorg-libxdamage ffmpegthumbnailer)

description="Multi-panel tabbed file manager"
url="http://ignorantguru.github.com/spacefm/"

maintainer="Maximilian Dietrich, dxm at openmailbox dot org"
packager="Great-OS Team"

name=spacefm
version=1.0.6

run=(shared-mime-info)

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/IgnorantGuru/$name/archive/$version.tar.gz
        0001-glibc-2.28-compatibility.patch
	0002-spacefm-Fix-GCC-10-build.patch)

build () {
    cd $name-$version
for i in ../*.patch; do
	patch -Np1 -i $i
done

    ./configure --prefix=/usr \
                --mandir=/usr/man \
                --disable-pixmaps \
                --with-gtk3

    make
    make DESTDIR=$PKG install
}
