Advertisement
Guest User

Untitled

a guest
Dec 11th, 2017
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.88 KB | None | 0 0
  1. commit 1fe7b710597abbbe7d9bae37904f02c4003d7fdb
  2. Author: Gerlof Fokkema <gerlof.fokkema@gmail.com>
  3. Date:   Tue Dec 12 01:25:34 2017 +0100
  4.  
  5.     Fix compilation.
  6.  
  7. diff --git a/PKGBUILD b/PKGBUILD
  8. index 1e43263..388ba55 100644
  9. --- a/PKGBUILD
  10. +++ b/PKGBUILD
  11. @@ -19,17 +19,23 @@ replaces=('minidlna-transcode-hg')
  12.  backup=('etc/minidlna.conf'
  13.          'etc/conf.d/minidlna')
  14.  source=('readymedia-transcode::git+https://bitbucket.org/stativ/readymedia-transcode.git#branch=transcode' \
  15. -        minidlna.rc tmpfiles.conf minidlna.service)
  16. +        minidlna.rc tmpfiles.conf minidlna.service imagemagick.patch)
  17.  md5sums=('SKIP'
  18.           '484bb94e886616afcb3aba00926aeee9'
  19.           'af1b8c0fef9902f797b0324c255da5a1'
  20. -         'e4d6766af90599929155ff15427bfdf5')
  21. +         'e4d6766af90599929155ff15427bfdf5'
  22. +         '005fc1a8d55f5492174feabf09795ed7')
  23.  
  24.  pkgver() {
  25.    cd "$srcdir/readymedia-transcode"
  26.    echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
  27.  }
  28.  
  29. +prepare() {
  30. +  cd "$srcdir/readymedia-transcode"
  31. +  patch -Np1 -i "$srcdir/imagemagick.patch"
  32. +}
  33. +
  34.  build() {
  35.    cd "$srcdir/readymedia-transcode"
  36.  
  37. diff --git a/imagemagick.patch b/imagemagick.patch
  38. new file mode 100644
  39. index 0000000..fc7f458
  40. --- /dev/null
  41. +++ b/imagemagick.patch
  42. @@ -0,0 +1,26 @@
  43. +diff --git a/dlnameta.c b/dlnameta.c
  44. +index 9dcbd9d..e14cd9b 100644
  45. +--- a/dlnameta.c
  46. ++++ b/dlnameta.c
  47. +@@ -21,7 +21,7 @@
  48. +
  49. + #include <sys/stat.h>
  50. + #include <unistd.h>
  51. +-#include <wand/MagickWand.h>
  52. ++#include <MagickWand/MagickWand.h>
  53. +
  54. + #include "libav.h"
  55. +
  56. +diff --git a/metadata.c b/metadata.c
  57. +index faf5a44..cf72027 100644
  58. +--- a/metadata.c
  59. ++++ b/metadata.c
  60. +@@ -30,7 +30,7 @@
  61. + #include <sys/errno.h>
  62. + #include <fcntl.h>
  63. +
  64. +-#include <wand/MagickWand.h>
  65. ++#include <MagickWand/MagickWand.h>
  66. + #include <libexif/exif-loader.h>
  67. + #include <jpeglib.h>
  68. + #include <setjmp.h>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement