Annotation of /smage/trunk/core/libx86emu/libx86emu-3.1-r1.smage2
Parent Directory | Revision Log
Revision 14277 -
(hide annotations)
(download)
Tue Jul 7 15:43:41 2020 UTC (4 years, 2 months ago) by niro
File size: 981 byte(s)
Tue Jul 7 15:43:41 2020 UTC (4 years, 2 months ago) by niro
File size: 981 byte(s)
auto added: ver bump to 3.1-r1
1 | niro | 14276 | # $Id$ |
2 | |||
3 | PNAME="libx86emu" | ||
4 | PVER="3.1" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="sys-libs" | ||
8 | |||
9 | DESCRIPTION="x86 emulation library." | ||
10 | HOMEPAGE="http://www.opensuse.org" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PVER}.tar.gz" | ||
15 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" | ||
16 | |||
17 | sminclude mtools mbuild alx-split | ||
18 | |||
19 | SRC_URI=( | ||
20 | https://github.com/wfeldt/${PNAME}/archive/${SRCFILE} | ||
21 | mirror://${PNAME}/${SRCFILE} | ||
22 | ) | ||
23 | |||
24 | UP2SEPERATOR="\/" | ||
25 | UP2DATE="updatecmd https://github.com/wfeldt/${PNAME}/releases | highesttarball gz" | ||
26 | |||
27 | niro | 14277 | src_prepare() |
28 | { | ||
29 | munpack ${SRCFILE} || die | ||
30 | cd ${SRCDIR} | ||
31 | |||
32 | # circumvent git and its dependencies | ||
33 | echo ${PVER} > ${SRCDIR}/VERSION || die | ||
34 | touch ${SRCDIR}/changelog || die | ||
35 | if [[ -f ${SRCDIR}/git2log ]] | ||
36 | then | ||
37 | rm ${SRCDIR}/git2log || die | ||
38 | fi | ||
39 | } | ||
40 | |||
41 | niro | 14276 | src_compile() |
42 | { | ||
43 | cd ${SRCDIR} | ||
44 | mmake LIBDIR=/usr/$(mlibdir) || die | ||
45 | } | ||
46 | |||
47 | alx_generic_src_install() | ||
48 | { | ||
49 | cd ${SRCDIR} | ||
50 | |||
51 | minstalldir /usr/$(mlibdir) || die | ||
52 | mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die | ||
53 | minstalldocs Changelog LICENSE README VERSION || die | ||
54 | } |