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


                
                 


         
                                                        
                                                            
 
                           
                      










                                                                                            
#!/bin/bash

fetch_source() {
	autoclone
}

build() {
	local SRCDIR="${MODULE_WORK_DIR}/src/printergui"
	local DESTDIR="${MODULE_BUILD_DIR}/opt/openslx/cups"

	mkdir -p "$DESTDIR"
	cde "$DESTDIR"
	pinfo "Running cmake"
	cmake "$SRCDIR/" || perror "'cmake' failed (e.g. not installed)."
	pinfo "Running make"
	make || perror "'make' failed."
	chmod 0700 "$DESTDIR/printpwgui"	# So picky cupsd won't drop privileges to lp

}
post_copy() {
	:
}