# Maintainer: Jason Wood <jwood@startmail.com>

pkgname=headlines
pkgver=0.7.2
pkgrel=1
epoch=
pkgdesc="GTK4 Reddit client"
arch=('any')
url="https://gitlab.com/caveman250/headlines"
license=('GPL3')
groups=()
depends=(
	'gtkmm-4.0'
	'libmicrohttpd'
	'curl'
	'jsoncpp'
	'libxml2'
	'ffmpeg'
	'gstreamer'
	'gst-plugins-base'
	'gst-plugins-good'
	'gst-plugins-bad'
	'gst-libav'
	'youtube-dl'
	'websocketpp'
	'libadwaita'
	'xdg-utils'
)
makedepends=('cmake' 'gcc' 'boost')
checkdepends=()
optdepends=()
provides=()

source=("$url/-/archive/$pkgver/Headlines-$pkgver.tar.gz")
sha256sums=('SKIP')
build() {
	cd "$srcdir/Headlines-$pkgver"
	mkdir -p bin
	cd bin
	cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DDIST_BUILD=ON ..
	make -j4
}

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