# Author (AUR): Dies <JerryCasiano(at)gmail(dot)com> 
# Maintainer (AUR): Joeny Ang <ang(dot)joeny(at)gmail(dot)com>
# Contributor (AUR): Guan 'kuno' Qing <neokuno(at)gmail(dot)com>
# Contributor (AUR): Guten Ye <ywzhaifei(at)gmail(dot)com>
# Contributor (AUR): i_magnific0 <i_magnific0(at)yahoo(dot)com>
# Contributor (AUR): Pavlo <pavlofreemen(at)gmail(dot)com>
# Contributor: Esteban Carnevale <alfplayer@mailoo.org>

# parabola changes and rationale:
#  no changes.

pkgname=font-manager
pkgver=0.7.3
pkgrel=2
pkgdesc="A simple font management application for GTK+ Desktop Environments"
url="http://fontmanager.github.io/"
arch=('i686' 'x86_64' 'armv7h')
license=('GPL')
depends=('libgee' 'libxml2' 'sqlite' 'gucharmap' 'file-roller')
makedepends=('intltool' 'yelp-tools' 'gobject-introspection' 'vala')
install=font-manager.install
source=("https://github.com/FontManager/master/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
        "2017.06.patch")
md5sums=('3623327f516100f65a84a04ba1be39c9'
         '2cf27b2c3bea869f29b17f62d3d541a2')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  
  patch -Np0 < ../2017.06.patch

  ./configure --prefix=/usr --disable-schemas-compile --with-file-roller
  make -j1
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install
}
