Package Details: halcogen 04.07.01-1

Git Clone URL: https://aur.archlinux.org/halcogen.git (read-only, click to copy)
Package Base: halcogen
Description: Hardware Abstraction Layer Code Generator for Hercules MCUs
Upstream URL: https://www.ti.com/tool/HALCOGEN/
Licenses: custom
Submitter: gpol
Maintainer: gpol
Last Packager: gpol
Votes: 0
Popularity: 0.000000
First Submitted: 2020-07-02 14:10 (UTC)
Last Updated: 2020-07-02 14:10 (UTC)

Latest Comments

hannu commented on 2021-08-13 08:08 (UTC)

I had several issues with the PKGBUILD (dependencies, directory permissions etc). This edited one worked for me.

# Maintainer: Gabriel-Andrew Pollo-Guilbert <gabrielpolloguilbert@gmail.com>
#
# You can define $HALCOGEN_WINEPREFIX environment variable to hardcode the $WINEPREFIX
# of wine running HALCoGen, the  is default '~/.wine-halcogen'.

pkgname=halcogen
pkgver=04.07.01
pkgrel=1
pkgdesc='Hardware Abstraction Layer Code Generator for Hercules MCUs'
arch=('i686' 'x86_64')
url='https://www.ti.com/tool/HALCOGEN/'
license=('custom')
depends=('wine' 'wine-gecko' 'wine-mono' 'lib32-fakeroot')

source=('https://www.ti.com/lit/sw/spnc030g/spnc030g.zip'
        'halcogen.sh')
md5sums=('e521ca88416a99717637280417f93350'
         '44a08dbac4143ed758146bfb59bc00df')

build() {
    WINEARCH=win32 WINEPREFIX="${srcdir}/prefix" wine "${srcdir}/HALCoGen-${pkgver}-installer.exe" \
        --mode unattended \
        --prefix "${srcdir}/opt/halcogen" \
        --install_desktop_shortcuts 0
    WINEARCH=win32 WINEPREFIX="${srcdir}/prefix" wineserver -k
}

package() {
    cp -r "${srcdir}/opt" "${pkgdir}/"
    install -Dm755 "${srcdir}/halcogen.sh" "${pkgdir}/usr/bin/halcogen"

    if [[ -z "$HALCOGEN_WINEPREFIX" ]]; then
        sed -i "s#\${REPLACE_WINEPREFIX}#\${HOME}/.wine-halcogen#g" "${pkgdir}/usr/bin/halcogen"
    else 
        sed -i "s#\${REPLACE_WINEPREFIX}#${HALCOGEN_WINEPREFIX}#g" "${pkgdir}/usr/bin/halcogen"
    fi

    sed -i "s#${srcdir}##g" "${pkgdir}/opt/halcogen/HCG_updater.ini"
}