# Maintainer: MichaƂ # Contributor: Euri Linux Team pkgname=euri-welcome pkgver=0.1 pkgrel=3 pkgdesc="Welcome screen and support tool for new Euri Linux users" arch=('any') url="https://antergos-nas.taild4360b.ts.net/Euri-Linux/euri-welcome" license=('GPL3') depends=( 'gtk3' 'python' 'python-gobject' 'python-cairo' ) makedepends=('git') source=("${pkgname}::git+https://antergos-nas.taild4360b.ts.net/Euri-Linux/euri-welcome.git") sha256sums=('SKIP') package() { cd "${srcdir}/${pkgname}" install -dm755 "${pkgdir}/usr/share/euri/euri-welcome" cp -r src "${pkgdir}/usr/share/euri/euri-welcome/" cp -r data "${pkgdir}/usr/share/euri/euri-welcome/" cp data/preferences.json "${pkgdir}/usr/share/euri/euri-welcome/" cp -r ui "${pkgdir}/usr/share/euri/euri-welcome/" cp -r po "${pkgdir}/usr/share/euri/euri-welcome/" cp -r utils "${pkgdir}/usr/share/euri/euri-welcome/" find "${pkgdir}/usr/share/euri/euri-welcome/po" -name "*.po" -exec msgfmt -o {}.mo {} \; 2>/dev/null || true install -dm755 "${pkgdir}/usr/bin" cat > "${pkgdir}/usr/bin/euri-welcome" << 'EOF' #!/bin/bash exec /usr/bin/python3 /usr/share/euri/euri-welcome/src/euri_welcome.py "$@" EOF chmod 755 "${pkgdir}/usr/bin/euri-welcome" install -dm755 "${pkgdir}/usr/share/applications" cp euri-welcome.desktop "${pkgdir}/usr/share/applications/" }