File PKGBUILD of Package lunacy
# Contributor : smowtenshi <smowtenshi@protonmail.com>
# Contributor : Asim Bera <asimbera@outlook.in>
# Maintainer : James Ed Randson <jimedrand@disroot.org>
pkgname=lunacy
pkgver=11.6
pkgrel=1
pkgdesc="Free design software that keeps your flow with AI tools and built-in graphics"
arch=('x86_64')
url="https://icons8.com/lunacy"
license=('custom: commercial')
depends=('gcc-libs' 'hicolor-icon-theme' 'zlib' 'fontconfig')
provides=('lunacy')
source=(lunacy-mimetype.xml)
source_x86_64=(lunacy_x86_64_${pkgver}.deb::https://lcdn.icons8.com/setup/Lunacy_${pkgver}.deb)
sha256sums=('SKIP')
sha256sums_x86_64=('SKIP')
package() {
#echo " -> Extracting the data.tar.xz..."
bsdtar -xf data.tar.xz -C "$pkgdir/"
install -d "${pkgdir}/usr/bin"
ln -s /opt/icons8/${pkgname}/Lunacy "${pkgdir}"/usr/bin/lunacy
install -m644 lunacy-mimetype.xml "${pkgdir}/usr/share/mime/packages/${pkgname}.xml"
}