blob: 9a89566f3974445d17f571e43eb19ea37deb7a3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#!/bin/bash
#
# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
source /usr/src/ports/Build/build.sh
NAME=flash_plugin
MAJOR=11
VERSION=${MAJOR}.2.202.400
BUILD=1
DEPENDS=('gtk+ >= 2.24.17-1')
# Description
cat > ${PKG}/install/slack-desc <<EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':'.
$(padd)|-----handy-ruler------------------------------------------------------|
${NAME}: flash_plugin (Adobe Flash Player)
${NAME}:
${NAME}: This is the official Adobe Flash Player plug-in for NPAPI-capable
${NAME}: browsers such as Mozilla and Chrome.
${NAME}:
${NAME}:
${NAME}:
${NAME}:
${NAME}:
${NAME}:
${NAME}:
EOF
# Sources
SRCNAME[0]=${NAME}
SRCVERS[0]=${VERSION}
SRCOPTS[0]="nosrcroot"
URL=http://download.macromedia.com/pub/labs/flashplatformruntimes/flashplayer11
if [ "$(uname -m)" == "x86_64" ]; then
SRCPACK[0]=${URL}/install_flash_player_11_linux.x86_64.tar.gz
else
SRCPACK[0]=${URL}/install_flash_player_11_linux.i386.tar.gz
fi
build0()
{
install.dir ${PKG}${SYS_DIR[lib]}/plugins/mozilla
install.bin libflashplayer.so ${PKG}${SYS_DIR[lib]}/plugins/mozilla
install.dir ${PKG}${SYS_DIR[bin]}
install.bin usr/bin/flash-player-properties ${PKG}${SYS_DIR[bin]}
install.dir ${PKG}${SYS_DIR[share]}/applications
install.dat \
usr/share/applications/flash-player-properties.desktop \
${PKG}${SYS_DIR[share]}/applications
install.dir ${PKG}${SYS_DIR[share]}/icons/hicolor
cp -r usr/share/icons/hicolor/* ${PKG}${SYS_DIR[share]}/icons/hicolor
}
|