Advertisement
Guest User

Untitled

a guest
Jan 24th, 2012
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.02 KB | None | 0 0
  1. _pkgbase=rtmpdump
  2. pkgname=lib32-${_pkgbase}
  3. pkgver=2.4
  4. pkgrel=1
  5. pkgdesc="A tool to download rtmp streams (32 bit)"
  6. arch=('x86_64')
  7. url="http://rtmpdump.mplayerhq.hu/"
  8. license=('GPL2' 'LGPL2.1')
  9. depends=('lib32-openssl' "${_pkgbase}")
  10. makedepends=('gcc-multilib')
  11. #source=(http://rtmpdump.mplayerhq.hu/download/${_pkgbase}-${pkgver}.tgz)
  12. source=(ftp://ftp.archlinux.org/other/${_pkgbase}/${_pkgbase}-${pkgver}.tar.xz)
  13. sha256sums=('2c3b76d46d56180176ef099b8ad50a1608bef1dac35d8cb0b21ceac31b5c0656')
  14.  
  15. build() {
  16.   cd "${srcdir}/${_pkgbase}-${pkgver}"
  17.  
  18.   sed -e '/^prefix\=/s/\/local//' \
  19.       -e '/^CC\=/s/gcc/gcc -m32/' \
  20.       -e '/^LD\=/s/ld/\/usr\/bin\/ld -m elf_386/' \
  21.       -e '/^CFLAGS\=/s/-Wall/-Wall/' \
  22.       -e '/^LDFLAGS\=/s/-Wall/-Wall/' \
  23.       -e '/^LIBS\=/s/\=/\=-L\/usr\/lib32/' \
  24.       -i Makefile
  25.      
  26.  
  27.   make
  28. }
  29.  
  30. package() {
  31.   cd "${srcdir}/${_pkgbase}-${pkgver}"
  32.   install -d -m755 "${pkgdir}/usr/lib32"
  33.   make prefix=/usr mandir=/usr/share/man libdir=/usr/lib32 DESTDIR="${pkgdir}" install
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement