PKGBUILD 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Maintainer (Arch): David Runge <dvzrv@archlinux.org>
  2. # Contributor (Arch): Federico Cinelli <cinelli@aur.archlinux.org>
  3. # Contributor (Arch): Mateusz Herych <heniekk@gmail.com>
  4. # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
  5. # Contributor: Jorge Lopez <jorginho@lavabit.com>
  6. pkgname=libquicktime
  7. pkgver=1.2.4
  8. pkgrel=22
  9. pkgrel+=.parabola1
  10. pkgdesc="A library for reading and writing quicktime files"
  11. pkgdesc+=", without nonfree faac support"
  12. arch=('x86_64')
  13. arch+=('i686' 'armv7h')
  14. license=('LGPL2.1')
  15. url="http://libquicktime.sourceforge.net/"
  16. depends=('glib2' 'glibc' 'zlib')
  17. makedepends=('alsa-lib' 'faad2' 'ffmpeg' 'gtk2' 'lame' 'libdv'
  18. 'libglvnd' 'libjpeg-turbo' 'libvorbis' 'libx11' 'libxaw' 'libxext' 'libxt'
  19. 'libxv' 'schroedinger' 'sndio' 'x264')
  20. optdepends=('alsa-lib: for lqtplay'
  21. 'ffmpeg: for lqt_ffmpeg plugin'
  22. 'gtk2: for libquicktime_config'
  23. 'lame: for lqt_lame plugin'
  24. 'libdv: for lqt_dv plugin'
  25. 'libglvnd: for lqtplay'
  26. 'libjpeg-turbo: for lqt_mjpeg plugin'
  27. 'libpng: for lqt_png plugin'
  28. 'libvorbis: for lqt_lame and lqt_vorbis plugin'
  29. 'libx11: for lqtplay'
  30. 'libxaw: for lqtplay'
  31. 'libxext: for lqtplay'
  32. 'libxt: for lqtplay'
  33. 'libxv: for lqtplay'
  34. 'schroedinger: for lqt_schroedinger plugin'
  35. 'sndio: for lqtplay'
  36. 'x264: for lqt_x264 plugin')
  37. provides=('libquicktime.so')
  38. source=("https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"
  39. "${pkgname}-1.2.4-CVE-2016-2399.patch"
  40. "${pkgname}-1.2.4-CVE-2017-9122_et_al.patch"
  41. "${pkgname}-1.2.4-faad2.patch"
  42. "${pkgname}-1.2.4-ffmpeg2.patch"
  43. "${pkgname}-1.2.4-ffmpeg29.patch"
  44. "${pkgname}-1.2.4-ffmpeg4.patch"
  45. "${pkgname}-1.2.4-ffmpeg-codecs.patch"
  46. "${pkgname}-1.2.4-libavutil.patch")
  47. sha512sums=('6ab6cd62ae2361bb3ad73725e9e8baa2b03361bc23e9e34b24f90c0e2bec4337de950ed7f30a6a1d2e67ab33e8f0c43538369fd07e417f54b84583a3c331f8dd'
  48. '759fee13bc96db036063efcd8288c0e467ce811b597cf6c0ceed1c8927593963174f4f3324512db0e773e936a4b9fe5c8d8fc9e0f00b2ce59110661175986f9c'
  49. '93639d3fe12eefddd1b457be702ec0a4a64a73c44fce6b3134e50bb9a4e7e5f25d256d3ace6ec5e774f2db4c0d68725f3e35e901f7d932a4be9cba566eab528e'
  50. '3e751330ebbc4026363efd45b21c60c313ea169a57a5cdfa46125e126aab34c2dea3629ce92e7b0b5f14693db4f11723177fd28611e2e979cc8fcd506077509e'
  51. '32ddf394aad4ed80e89ec72a534e0466268ab0061b991815e905b78eae55a7d935117b0915faf6f7f51bd7e2d9fbaa4b0e07bfcef1ef1e2f4a7e2061c489122d'
  52. '2a7e06c03b0f64f02b923c1a0e7121f4e1ea735f19a6df8ce8daf18177ead132d1ae921c64f3770042db3bbf29f15a7fcceece835d475e052c4c3bb7139c9e2e'
  53. '1b11a82d694654976a5f79cd8feb27eec3810e09a66dc58ca576eaf1f96e4948abd4dae7955a7da6cf99ae6ffef9e183b39090d96cc6b5fe216b4c4f4faff7a8'
  54. '20c535444de1f3e9a68c35ee4eb409f150e6340fd43dda4544791454f42c031b24c08f651e0351f5a22dcb59459ac372aa70d82a1d20482b2d997589e19087fd'
  55. '691110dc18f6646e2e17f40c6a42911a6b8eaa8cea20b5595f20d218d51da11d11923a3001b7ad7c3ad6bd0d90e712b95ccee5526fa1bec176cd27813e4a775e')
  56. replaces=("${pkgname}-libre" "${pkgname}-parabola")
  57. conflicts=("${pkgname}-libre" "${pkgname}-parabola")
  58. prepare() {
  59. cd "$pkgname-$pkgver"
  60. # boatload of CVEs: http://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=libquicktime
  61. patch -Np1 -i "../${pkgname}-1.2.4-CVE-2016-2399.patch"
  62. patch -Np1 -i "../${pkgname}-1.2.4-CVE-2017-9122_et_al.patch"
  63. # checks for faad2 are broken in configure.ac
  64. patch -Np1 -i "../${pkgname}-1.2.4-faad2.patch"
  65. # ffmpeg compatibility is very ancient
  66. patch -Np1 -i "../${pkgname}-1.2.4-ffmpeg2.patch"
  67. patch -Np1 -i "../${pkgname}-1.2.4-ffmpeg29.patch"
  68. patch -Np1 -i "../${pkgname}-1.2.4-ffmpeg4.patch"
  69. patch -Np1 -i "../${pkgname}-1.2.4-libavutil.patch"
  70. patch -Np1 -i "../${pkgname}-1.2.4-ffmpeg-codecs.patch"
  71. autoreconf -vfi
  72. }
  73. build() {
  74. cd $pkgname-$pkgver
  75. ./configure \
  76. --prefix=/usr \
  77. --enable-gpl \
  78. --with-ffmpeg \
  79. --with-libdv \
  80. --with-x264 \
  81. --without-doxygen \
  82. --without-faac
  83. make
  84. }
  85. package() {
  86. depends+=('libfaad.so')
  87. cd $pkgname-$pkgver
  88. make DESTDIR="$pkgdir" install
  89. install -vDm 644 {AUTHORS,ChangeLog,README,TODO} \
  90. -t "${pkgdir}/usr/share/doc/${pkgname}"
  91. }