Skip to content

sdl2, sdl2-*, libsndfiles: Install and uninstall scripts fail to (un)register PKG_CONFIG_PATH and CMAKE_PREFIX_PATH (script error) #8118

@HaSa1002

Description

@HaSa1002

Bug Report

Package Name: sdl2, sdl2-image, sdl2-mixer, sdl2-ttf, libsndfile

Current Behaviour

The install and uninstall scripts don't register the PKG_CONFIG_PATH and CMAKE_PREFIX_PATH and instead fail to execute:

$pcdir = $(current_dir $dir)\lib\pkgconfig
$cmdir = $(current_dir $dir)

It throws a command not found error because current_dir is not a command.

Expected Behaviour

It should register both paths to the environment variables.

Possible Solution

I replaced $(current_dir $dir) with $dir and it works just fine.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version:

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      19041  1320

Scoop Configuration

{
    "lastupdate":  "2022-03-08T13:12:33.0524517+01:00",
    "SCOOP_REPO":  "https://github.com/lukesampson/scoop",
    "SCOOP_BRANCH":  "master"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions