2009-10-12 23:39:15 +00:00
|
|
|
# Template file for 'adobe-flash-plugin'
|
|
|
|
pkgname=adobe-flash-plugin
|
2009-11-17 19:11:51 +00:00
|
|
|
version=10.1beta
|
2010-01-11 16:30:28 +00:00
|
|
|
revision=3
|
2009-11-17 19:11:51 +00:00
|
|
|
# The EULA file
|
|
|
|
_eula="http://www.adobe.com/products/eulas/pdfs/Reader_Player_WWEULA-Combined-20060724_1430.pdf"
|
|
|
|
_eulacksum=986c3ddacfee18946fbef7b76485922f8f36e61f790776ce82a87afff3008427
|
2009-10-12 23:39:15 +00:00
|
|
|
if [ "$xbps_machine" = "x86_64" ]; then
|
2009-12-20 21:06:38 +00:00
|
|
|
# There is no x86_64 version for 10.1beta yet.
|
2010-02-17 06:46:26 +00:00
|
|
|
version=10.0.45.2
|
2009-11-17 19:11:51 +00:00
|
|
|
_disttarball="http://download.macromedia.com/pub/labs/flashplayer10"
|
|
|
|
_disttarball="${_disttarball}/libflashplayer-${version}.linux-x86_64.so.tar.gz"
|
2010-02-17 06:46:26 +00:00
|
|
|
_distcksum="eeabb58a7bb71843cd99fbbb5ba77b6dce93018bfcff579f6f89327a990074d6"
|
2009-10-12 23:39:15 +00:00
|
|
|
else
|
2009-11-17 19:11:51 +00:00
|
|
|
_disttarball="http://download.macromedia.com/pub/labs/flashplayer10"
|
|
|
|
_disttarball="${_disttarball}/flashplayer10_1_p1_linux_111709.tar.gz"
|
|
|
|
_distcksum="b63cf3b98370c4ead94ad9ce81697c4f288bddd29118e47455f36446b3239b70"
|
2009-10-12 23:39:15 +00:00
|
|
|
fi
|
2009-11-17 19:11:51 +00:00
|
|
|
distfiles="${_eula} ${_disttarball}"
|
|
|
|
checksum="${_eulacksum} ${_distcksum}"
|
2009-10-12 23:39:15 +00:00
|
|
|
noextract=yes
|
|
|
|
build_style=custom-install
|
|
|
|
short_desc="Adobe Flash Player plugin"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
long_desc="
|
|
|
|
This is the Adobe Flash Player plugin for Netscape compatible browsers."
|
|
|
|
|
2010-01-11 16:30:28 +00:00
|
|
|
Add_dependency run libstdc++
|
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run libX11
|
|
|
|
Add_dependency run libXext
|
|
|
|
Add_dependency run libXt
|
|
|
|
Add_dependency run freetype
|
|
|
|
Add_dependency run fontconfig
|
|
|
|
Add_dependency run gtk+
|
|
|
|
Add_dependency run atk
|
|
|
|
Add_dependency run pango
|
|
|
|
Add_dependency run cairo
|
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run nss
|
|
|
|
Add_dependency run nspr
|
|
|
|
Add_dependency run libgcc
|
|
|
|
Add_dependency run curl-libs
|
|
|
|
Add_dependency build libstdc++-devel
|
|
|
|
Add_dependency build glibc-devel
|
|
|
|
Add_dependency build libX11-devel
|
|
|
|
Add_dependency build libXext-devel
|
|
|
|
Add_dependency build libXt-devel
|
|
|
|
Add_dependency build freetype-devel
|
|
|
|
Add_dependency build fontconfig-devel
|
|
|
|
Add_dependency build gtk+-devel
|
|
|
|
Add_dependency build atk-devel
|
|
|
|
Add_dependency build pango-devel
|
|
|
|
Add_dependency build cairo-devel
|
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build nss-devel
|
|
|
|
Add_dependency build nspr-devel
|
|
|
|
Add_dependency build curl-devel
|
2009-10-12 23:39:15 +00:00
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
2009-11-17 19:11:51 +00:00
|
|
|
cd ${wrksrc} || retuyrn 1
|
|
|
|
install -d ${DESTDIR}/usr/lib/mozilla/plugins \
|
|
|
|
${DESTDIR}/usr/share/doc/${pkgname} || return 1
|
|
|
|
tar xfz "${XBPS_SRCDISTDIR}/$(basename ${_disttarball})" || return 1
|
2009-12-20 21:06:38 +00:00
|
|
|
if [ "${xbps_machine}" = "x86_64" ]; then
|
|
|
|
install -m755 libflashplayer.so ${DESTDIR}/usr/lib/mozilla/plugins \
|
|
|
|
|| return 1
|
|
|
|
else
|
|
|
|
install -m755 install_flash_player_10_linux/libflashplayer.so \
|
|
|
|
${DESTDIR}/usr/lib/mozilla/plugins || return 1
|
|
|
|
fi
|
2009-11-17 19:11:51 +00:00
|
|
|
install -m644 "${XBPS_SRCDISTDIR}/$(basename ${_eula})" \
|
|
|
|
${DESTDIR}/usr/share/doc/${pkgname} || return 1
|
2009-10-12 23:39:15 +00:00
|
|
|
}
|