summaryrefslogtreecommitdiff
path: root/rtmpdump-32/Pkgfile
blob: 1aa91f396428f8f7bccc2ff6c4342d7bd3a19268 (plain)
    1 # Description: A tool to download rtmp streams.
    2 # URL: http://rtmpdump.mplayerhq.hu/
    3 # Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
    4 # Depends on: gnutls-32 rtmpdump zlib-32
    5 
    6 name=rtmpdump-32
    7 version=2.4
    8 release=1
    9 source=(https://crux.ster.zone/downloads/rtmpdump/rtmpdump-$version-c5f04a58.tar.xz)
   10 
   11 build() {
   12   cd rtmpdump
   13   sed \
   14     -e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' \
   15     -e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' \
   16     -i Makefile -i librtmp/Makefile
   17 
   18   sed \
   19     -e 's|OPT=|&-fPIC |' \
   20     -e 's|OPT|OPTS|' \
   21     -e 's|CFLAGS=.*|& $(OPT)|' \
   22     -i librtmp/Makefile
   23 
   24   make \
   25     OPT="$CFLAGS" \
   26     XLDFLAGS="$LDFLAGS"
   27   mkdir -p $PKG/usr/lib32
   28   make \
   29     prefix='/usr' \
   30     sbindir='/usr/bin' \
   31     libdir='/usr/lib32' \
   32     mandir='/usr/share/man' \
   33     DESTDIR=$PKG \
   34     install
   35 
   36   rm -r $PKG/usr/{bin,include,share}
   37 }

Generated by cgit