Reno is the second iteration of the AWMTK-powered AwesomeWM config.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
704 B

2 years ago
2 years ago
2 years ago
  1. #!/bin/bash
  2. #This script builds luapam module for the appropriate lua version
  3. #Lua-pam is needed by the lock screen widget
  4. doasroot() {
  5. nohup which sudo > /dev/null
  6. if [ "$?" != "0" ]; then
  7. doas $@
  8. else
  9. sudo $@
  10. fi
  11. }
  12. LUA_VERSION=$(awesome --version | \
  13. grep -Po "(?<=Compiled against Lua )5\.\d")
  14. if [ "$LUA_VERSION" == "" ]; then
  15. echo "Unable to detect the lua version which awesome uses"
  16. exit 1
  17. fi
  18. echo "Target version: $LUA_VERSION"
  19. git clone --recursive https://github.com/devurandom/lua-pam lua-pam
  20. cd lua-pam
  21. make LUA_VERSION="$LUA_VERSION"
  22. mkdir -p ../pam/
  23. cp LICENSE ../pam/
  24. echo "https://github.com/devurandom/lua-pam" > ../pam/README
  25. cp pam.so ../