# Template file for 'ferdium'
pkgname=ferdium
version=7.0.1
revision=1
only_for_archs="x86_64"
hostmakedepends="tar xz"
short_desc="A messaging browser that allows you to combine your favorite messaging services into one application"
maintainer="Naz <ndpm13@ch-naeseem.com>"
license="Apache-2.0"
homepage="https://ferdium.org/"
distfiles="https://github.com/ferdium/ferdium-app/releases/download/v${version}/Ferdium-linux-${version}-amd64.deb"
checksum=7b93bc72f42abf2987422bbb918d4084a7e854eb032d82bc8435fe3ca8193c5b

do_extract() {
  mkdir -p ${DESTDIR}
  ar x ${XBPS_SRCDISTDIR}/${pkgname}-${version}/Ferdium-linux-${version}-amd64.deb
  tar xf data.tar.xz -C ${DESTDIR}
}

do_install() {
	vmkdir usr/bin
  ln -sf /opt/Ferdium/ferdium ${DESTDIR}/usr/bin/ferdium
  # Cleanup up
  rm -rf ${DESTDIR}/etc
}
