### this file is sourced not run
PKGVER=11.2.202.643
PKGBUILD=1
PKGARCH=i686

# source: james
TARBALL=install_flash_player_11_linux-$PKGVER.i386.tar.gz
MD5SUM=dd138cf72e62fbe69df5384d3e8396fc
SRC_URL=http://fpdownload.macromedia.com/get/flashplayer/pdc/$PKGVER/install_flash_player_11_linux.i386.tar.gz
BUNDLE=

SLACKREQ=
SLACKDESC="flash-plugin32: flash-plugin32 $PKGVER (Adobe Flash Player)  
flash-plugin32:  
flash-plugin32: This is the Flash player plugin for Mozilla-based browsers, such 
flash-plugin32: as Firefox and Seamonkey.  
flash-plugin32: 
flash-plugin32: 
flash-plugin32: 
flash-plugin32: 
flash-plugin32: 
flash-plugin32: 
flash-plugin32: 
"

### default pkg_download
### default pkg_prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	mkdir -p tmp/flash-plugin &&
	tar -xf $SRC_DIR/$TARBALL -C tmp/flash-plugin
}

### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
	mkdir -p usr/bin
	mv -v tmp/*-$USE_ARCH usr/bin
}

### build
pkg_build() {
	cd /tmp/flash-plugin &&
	mkdir -p /usr/$LIBDIR/mozilla/plugins &&
	cp libflashplayer.so /usr/$LIBDIR/mozilla/plugins &&
	cp usr/bin/flash-player-properties /usr/bin &&
	cp -a usr/share/icons usr/share/pixmaps usr/share/applications /usr/share &&
	pkg_build_slackdesc &&
	
	# multilib
	mv -v /usr/bin/flash-player-properties /tmp/flash-player-properties-$USE_ARCH
}


