#!/usr/bin/bash
# JOBoRun		: Jwm OpenBox Obarun RUNit
# Maintainer		: Joe Bo Run <joborun@disroot.org>
# PkgSource		: url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
#-----------------------------------------| DESCRIPTION |---------------------------------------

pkgname=clipit
_pkgname=ClipIt
pkgver=1.4.5
pkgrel=03
pkgdesc="Lightweight GTK+ clipboard manager (fork of Parcellite)"
arch=('i686' 'x86_64')
url="https://github.com/CristianHenzel/ClipIt/"
depends=('gtk3' 'libappindicator-gtk3')
makedepends=('intltool')
optdepends=('xdotool: for automatic paste')
source=("${_pkgname}-${pkgver}.tar.gz::${url}archive/v${pkgver}.tar.gz")

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  ./autogen.sh
  ./configure --prefix=/usr --sysconfdir=/etc --with-gtk3
  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}

#---- license gpg-key sha256sums ----

license=('GPL3')

md5sums=('4BDAC39A13EDBFF09D66959F94CCCAED')

sha256sums=(f0bbd1b4ff07bb4509388cf5b7f7a25fd72ec02cdd8f4c8f5ff3f5f9ca6da514) #  ClipIt-1.4.5.tar.gz
