reebypastalina

KiLauncher PKGBUILD

May 13th, 2021 (edited)
203
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pkgname=kilauncher-git
  2. pkgver=r75.93e3782
  3. pkgrel=1
  4. pkgdesc="A full-screen tabbed program launcher for kiosk systems."
  5. arch=('any')
  6. url="https://www.alandmoore.com/kilauncher/kilauncher.html"
  7. license=("GPL")
  8. makedepends=('git')
  9. depends=('python-yaml' 'python-pyqt5' 'python-xdg')
  10. source=("git+https://github.com/alandmoore/KiLauncher.git")
  11. md5sums=('SKIP')
  12. backup=("etc/kilauncher/kilauncher.yaml")
  13. _reponame="kilauncher"
  14.  
  15. pkgver() {
  16.  
  17.   cd "${srcdir}"/"${_reponame}"
  18.   printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  19.  
  20. }
  21.  
  22. prepare() {
  23.  
  24.   cd "${srcdir}"/"${_reponame}"
  25.  
  26.   # change the path in the launcher script
  27.   sed -i 's|/usr/local|/usr|' scripts/kilauncher
  28.  
  29. }
  30.  
  31. package(){
  32.  
  33.   cd "${srcdir}"/"${_reponame}"
  34.  
  35.   # Make directories
  36.   install -dm755 "${pkgdir}"/usr/share/"${_reponame}"/"${_reponame}" "${pkgdir}"/usr/share/doc/"${_reponame}"/extras
  37.  
  38.   # Copy Files
  39.   # /usr/share/kilauncher
  40.   install -D -m644 kilauncher.py "${pkgdir}"/usr/share/"${_reponame}"/kilauncher.py
  41.   install -m644 -t "${pkgdir}"/usr/share/"${_reponame}"/"${_reponame}" kilauncher/*.py
  42.   install -m644 stylesheet.css  "${pkgdir}"/usr/share/"${_reponame}"
  43.   install -m644 tile.png "${pkgdir}"/usr/share/"${_reponame}"
  44.  
  45.   # /usr/bin
  46.   install -D -m755 scripts/kilauncher "${pkgdir}"/usr/bin/kilauncher
  47.  
  48.   # /etc/kilauncher
  49.   install -D -m644 kilauncher.yaml "${pkgdir}"/etc/kilauncher/kilauncher.yaml
  50.  
  51.   # /usr/share/doc
  52.   install -D -m644 README.rst "${pkgdir}"/usr/share/doc/"${_reponame}"/README.rst
  53.   install -m644 COPYING "${pkgdir}"/usr/share/doc/"${_reponame}"/COPYING
  54.   install -m644 extras/* "${pkgdir}"/usr/share/doc/"${_reponame}"/extras/
  55.  
  56. }
  57.  
RAW Paste Data