# Maintainer: meanlint pkgname=xivlauncher-cn-git pkgver=1.0.7.1.r430.af53c80 pkgrel=1 pkgdesc="Custom Launcher for Final Fantasy XIV Online CN" arch=('x86_64') url='https://github.com/ottercorp/XIVLauncher.Core' license=('GPL') depends=( 'aria2' 'sdl2' 'lib32-sdl2' 'libsecret' 'attr' 'lib32-attr' 'fontconfig' 'lib32-fontconfig' 'lcms2' 'lib32-lcms2' 'libxml2' 'lib32-libxml2' 'libxcursor' 'lib32-libxcursor' 'libxrandr' 'lib32-libxrandr' 'libxdamage' 'lib32-libxdamage' 'libxi' 'lib32-libxi' 'gettext' 'lib32-gettext' 'freetype2' 'lib32-freetype2' 'glu' 'lib32-glu' 'libsm' 'lib32-libsm' 'gcc-libs' 'lib32-gcc-libs' 'libpcap' 'lib32-libpcap' 'faudio' 'lib32-faudio' 'desktop-file-utils' 'jxrlib' ) makedepends=('dotnet-sdk>=6' 'python-yaml' 'git') options=('!strip') provides=("xivlauncher=${pkgver}") conflicts=("xivlauncher") source=( "XIVLauncher.Core::git+https://github.com/ottercorp/XIVLauncher.Core.git" "XIVLauncher.desktop" ) sha512sums=( 'SKIP' '6c9a1f783969f293c07f06d167ab830f77ddaffdd8ce1df5f4e736056bd7c10c169c8c2411499493fb39659ca10643590998fccdaf4978dacb671ecfa2872949' ) prepare() { cd "${srcdir}/XIVLauncher.Core" git submodule update --init --recursive } build() { mkdir -p "${srcdir}/build" cd "${srcdir}/XIVLauncher.Core/src/XIVLauncher.Core/" dotnet publish -r linux-x64 --sc -o "${srcdir}/build" --configuration Release -p:DefineConstants=WINE_XIV_ARCH_LINUX } package() { install -d "${pkgdir}/usr/bin/" install -d "${pkgdir}/opt/XIVLauncher/" install -D -m644 "${srcdir}/XIVLauncher.desktop" "${pkgdir}/usr/share/applications/XIVLauncher.desktop" install -D -m644 "${srcdir}/XIVLauncher.Core/misc/linux_distrib/512.png" "${pkgdir}/usr/share/pixmaps/xivlauncher.png" cp -r "${srcdir}/build/." "${pkgdir}/opt/XIVLauncher/" ln -s ../../opt/XIVLauncher/XIVLauncher.Core "${pkgdir}/usr/bin/XIVLauncher.Core" }