Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
282
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. # Maintainer: orumin <dev at orum.in>
  2.  
  3. pkgname=lib32-imagemagick
  4. _basename=imagemagick
  5. pkgver=7.0.8.7
  6. pkgrel=2
  7. pkgdesc="An image viewing/manipulation program (32-bit)"
  8. arch=('x86_64')
  9. url="http://www.imagemagick.org/"
  10. license=('custom')
  11. depends=('lib32-libltdl' 'lib32-lcms2' 'lib32-libxt' 'lib32-fontconfig'
  12. 'lib32-libxext' 'lib32-liblqr' 'lib32-ocl-icd' 'lib32-libraqm')
  13. makedepends=('lib32-libltdl' 'lib32-lcms2' 'lib32-libxt' 'lib32-fontconfig'
  14. 'lib32-libxext' 'ghostscript' 'lib32-openexr' 'lib32-libwmf'
  15. 'lib32-librsvg' 'lib32-libxml2' 'lib32-liblqr' 'lib32-openjpeg2' 'lib32-libraw'
  16. 'opencl-headers' 'lib32-ocl-icd' 'lib32-libwebp' 'subversion' 'lib32-glu' 'git' 'imagemagick')
  17. checkdepends=(gsfonts ttf-dejavu)
  18. _tarname=ImageMagick-${pkgver%.*}-${pkgver##*.}
  19. options=('!docs' 'libtool' '!emptydirs' libtool)
  20.  
  21. source=(http://www.imagemagick.org/download/$_tarname.tar.xz{,.asc}
  22. arch-fonts.diff)
  23. sha256sums=('SKIP'
  24. 'SKIP'
  25. 'SKIP')
  26. validpgpkeys=('D8272EF51DA223E4D05B466989AB63D48277377A') # Lexie Parsimoniae
  27.  
  28. shopt -s extglob
  29.  
  30. prepare() {
  31. cd $_tarname
  32.  
  33. # Fix up typemaps to match our packages, where possible
  34. patch -Np1 -i "${srcdir}/arch-fonts.diff"
  35.  
  36. }
  37.  
  38. build() {
  39. cd $_tarname
  40.  
  41. export CC='gcc -m32'
  42. export CXX='g++ -m32'
  43. export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
  44.  
  45. ./configure --prefix=/usr --sysconfdir=/etc \
  46. --build=i686-pc-linux-gnu --libdir=/usr/lib32 \
  47. --with-dejavu-font-dir=/usr/share/fotns/TTF \
  48. --with-gs-font-dir=/usr/share/fotns/gsfonts \
  49. PSDelegate=/usr/bin/gs \
  50. XPSDelegate=/usr/bin/gxps \
  51. PCLDelegate=/usr/bin/gpcl6 \
  52. --enable-hdri \
  53. --enable-opencl \
  54. --with-gslib \
  55. --with-lqr \
  56. --with-modules \
  57. --with-openexr \
  58. --with-openjp2 \
  59. --with-rsvg \
  60. --with-webp \
  61. --with-wmf \
  62. --with-xml \
  63. --without-autotrace \
  64. --without-djvu \
  65. --without-dps \
  66. --without-fftw \
  67. --without-fpx \
  68. --without-gcc-arch \
  69. --without-gvc \
  70. --without-jbig
  71. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  72. make
  73. }
  74.  
  75. #check() {
  76. # cd $_tarname
  77. # ulimit -n 4096
  78. # make check
  79. #}
  80.  
  81. package() {
  82. cd $_tarname
  83. make -j1 DESTDIR="${pkgdir}" install
  84.  
  85. #Cleaning
  86. rm -f "${pkgdir}"/usr/lib32/*.la
  87. rm -rf "${pkgdir}"/usr/bin
  88. rm -rf "${pkgdir}"/usr/include
  89. rm -rf "${pkgdir}"/usr/share
  90. rm -rf "${pkgdir}"/etc
  91.  
  92. # template end;
  93. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement