Magellan Linux

Contents of /smage/branches/alx07x-unstable/core/libx86emu/libx86emu-3.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14644 - (show annotations) (download)
Tue Aug 4 11:39:19 2020 UTC (3 years, 8 months ago) by niro
File size: 1032 byte(s)
-release branches/alx07x-unstable
1 # $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 msetfeature "!check" # no check target in Makefile
18 sminclude mtools mbuild alx-split
19
20 SRC_URI=(
21 https://github.com/wfeldt/${PNAME}/archive/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2SEPERATOR="\/"
26 UP2DATE="updatecmd https://github.com/wfeldt/${PNAME}/releases | highesttarball gz"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 cd ${SRCDIR}
32
33 # circumvent git and its dependencies
34 echo ${PVER} > ${SRCDIR}/VERSION || die
35 touch ${SRCDIR}/changelog || die
36 if [[ -f ${SRCDIR}/git2log ]]
37 then
38 rm ${SRCDIR}/git2log || die
39 fi
40 }
41
42 src_compile()
43 {
44 cd ${SRCDIR}
45 mmake LIBDIR=/usr/$(mlibdir) || die
46 }
47
48 alx_generic_src_install()
49 {
50 cd ${SRCDIR}
51
52 minstalldir /usr/$(mlibdir) || die
53 mmake DESTDIR=${BINDIR} LIBDIR=/usr/$(mlibdir) install || die
54 minstalldocs Changelog LICENSE README VERSION || die
55 }