Annotation of /trunk/extras/mplayer-codecs/mplayer-codecs-20110131-r1.smage2
Parent Directory | Revision Log
Revision 10586 -
(hide annotations)
(download)
Wed Jan 25 22:37:58 2012 UTC (12 years, 8 months ago) by niro
File size: 910 byte(s)
Wed Jan 25 22:37:58 2012 UTC (12 years, 8 months ago) by niro
File size: 910 byte(s)
-moved to 'extras'
1 | niro | 8497 | # $Id$ |
2 | |||
3 | PNAME="mplayer-codecs" | ||
4 | PVER="20110131" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | niro | 10584 | PCAT="media-libs" |
8 | niro | 8497 | |
9 | DESCRIPTION="Essential codecs for mplayer." | ||
10 | HOMEPAGE="http://www.mplayerhq.hu/MPlayer/releases/codecs/" | ||
11 | |||
12 | DEPEND="" | ||
13 | |||
14 | # which codecs we use | ||
15 | CODECS="all" | ||
16 | |||
17 | SRCFILE="${CODECS}-${PVER}.tar.bz2" | ||
18 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
19 | |||
20 | sminclude mtools | ||
21 | |||
22 | SRC_URI=( | ||
23 | http://www1.mplayerhq.hu/MPlayer/releases/codecs/${SRCFILE} | ||
24 | mirror://${PNAME}/${SRCFILE} | ||
25 | ) | ||
26 | |||
27 | UP2DATE="updatecmd 'http://www1.mplayerhq.hu/MPlayer/releases/codecs/?C=M;O=A' | grep '/${CODECS}-[0-9]' | lasttarball" | ||
28 | |||
29 | src_prepare() | ||
30 | { | ||
31 | # we need a temp directory | ||
32 | install -d ${BUILDDIR}/${PNAME}-${PVER} || die | ||
33 | munpack ${SRCFILE} ${SRCDIR} || die | ||
34 | } | ||
35 | |||
36 | src_install() | ||
37 | { | ||
38 | cd ${SRCDIR} | ||
39 | |||
40 | # needed directories | ||
41 | minstalldir /usr/$(mlibdir)/win32 || die | ||
42 | mv ${CODECS}-${PVER}/* ${BINDIR}/usr/$(mlibdir)/win32 || die | ||
43 | |||
44 | # fix permissions | ||
45 | mchown -R root:root /usr/$(mlibdir)/win32 || die | ||
46 | } |