summaryrefslogblamecommitdiffstats
path: root/core/modules/cups/module.build
blob: ae2913a3aae1815de95301acd71f55946e957f75 (plain) (tree)
1
2
3
4
5
6
7
8






                
                  



                                                                                                                   









                                                                                                    
#!/bin/bash

fetch_source() {
	:
}

build() {
	local file
	# Move any disabled backends to the backend directory
	mv -n -- "${MODULE_BUILD_DIR}/usr/lib/cups/backend-available/"* "${MODULE_BUILD_DIR}/usr/lib/cups/backend/"
	rm -f -- "${MODULE_BUILD_DIR}/usr/lib/cups/backend-available/"*

	# cups insists on overriding PATH, so we need to fix any scripts
	for file in "${MODULE_BUILD_DIR}"/usr/lib/cups/{filter,backend}/*; do
		head -n 1 "$file" | grep -q '^#!/' && sed -i '/^#!\//a . \/etc\/environment' "$file"
	done
}

post_copy() {
	:
}