Advertisement
cmsigler

openscad-git_PKGBUILD.patch--OLD2

Aug 4th, 2022 (edited)
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. --- PKGBUILD.orig 2022-07-19 15:05:57.486075443 -0400
  2. +++ PKGBUILD 2022-08-04 08:48:04.432777709 -0400
  3. @@ -22,13 +22,13 @@
  4. _gitbranch="master"
  5.  
  6. pkgver() {
  7. - cd "$_gitname"
  8. + cd "$srcdir/$_gitname"
  9. git show -s --format="%ci" HEAD | sed -e 's/-//g' -e 's/ .*//'
  10. #git describe --always --tags | sed 's/-/./g'
  11. }
  12.  
  13. prepare() {
  14. - cd "$_gitname"
  15. + cd "$srcdir/$_gitname"
  16. # I am amazed that people are willing to avoid using sources(),
  17. # and download stuff inside of build() instead.
  18. # "git submodule update --init" is not okay.
  19. @@ -45,9 +45,9 @@
  20. }
  21.  
  22. build() {
  23. - cd "$_gitname"
  24. - mkdir -p build
  25. - cd build
  26. + cd "$srcdir/$_gitname"
  27. + mkdir -p ./build
  28. + cd ./build
  29. cmake -DCMAKE_INSTALL_PREFIX=/usr -DEXPERIMENTAL=ON -DOFFLINE_DOCS=ON ..
  30. make
  31. cd ..
  32. @@ -55,10 +55,9 @@
  33. }
  34.  
  35. package() {
  36. - cd "$_gitname/build"
  37. - make INSTALL_ROOT="$pkgdir" install
  38. - cd "$_gitname"
  39. + cd "$srcdir/$_gitname/build"
  40. + make DESTDIR="$pkgdir" install
  41. + cd ..
  42. install -Dm644 "resources/icons/openscad.desktop" "$pkgdir/usr/share/applications/openscad.desktop"
  43. install -Dm644 "resources/icons/openscad-128.png" "$pkgdir/usr/share/pixmaps/openscad.png"
  44. }
  45. -
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement