Magellan Linux

Contents of /smage/trunk/core/libsha1/libsha1-0.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 919 - (show annotations) (download)
Tue Dec 7 21:29:52 2010 UTC (13 years, 4 months ago) by niro
File size: 872 byte(s)
-fixed SRCFILE and SRCDIR
1 # $Id: libsha1-0.2-r2.smage2 310 2010-04-27 23:56:59Z niro $
2
3 PNAME="libsha1"
4 PVER="0.3"
5 PBUILD="r1"
6
7 PCATEGORIE="dev-libs"
8 STATE="unstable"
9
10 DESCRIPTION="libsha1 is a very tiny SHA1 implementation."
11 HOMEPAGE="http://github.com/dottedmag/libsha1/"
12
13 DEPEND=">= virtual/glibc"
14
15 sminclude mbuild multilib mcore-split
16
17 SRCFILE="dottedmag-${PNAME}-${PVER}-0-g3f976bb.tar.gz"
18 SRCDIR="${BUILDDIR}/dottedmag-${PNAME}-0d113b5"
19
20 SRC_URI=(
21 http://download.github.com/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd ${HOMEPAGE}downloads | grep tarball | sed 's/.*\/tarball\/\(.*\)/\1/;q'"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 # create configure
31 all-abis autoreconf --verbose --install --force || die
32 }
33
34 mcore_generic_src_install()
35 {
36 mmake DESTDIR=${BINDIR} install || die
37
38 # xorg wants libsha1.h as header file
39 mlink sha1.h /usr/include/libsha1.h || die
40 }