Annotation of /trunk/core/argon2/argon2-20171227-r1.smage2
Parent Directory | Revision Log
Revision 30633 -
(hide annotations)
(download)
Thu Feb 8 09:29:00 2018 UTC (6 years, 7 months ago) by niro
File size: 1496 byte(s)
Thu Feb 8 09:29:00 2018 UTC (6 years, 7 months ago) by niro
File size: 1496 byte(s)
-makefile provides no check function
1 | niro | 30631 | # $Id$ |
2 | |||
3 | PNAME="argon2" | ||
4 | PVER="20171227" | ||
5 | PBUILD="r1" | ||
6 | |||
7 | PCAT="app-crypt" | ||
8 | |||
9 | DESCRIPTION="A password-hashing function." | ||
10 | HOMEPAGE="https://github.com/P-H-C/phc-winner-argon2" | ||
11 | |||
12 | DEPEND=">= virtual/glibc" | ||
13 | |||
14 | SRCFILE="${PNAME}-${PVER}.tar.gz" | ||
15 | niro | 30632 | SRCDIR="${BUILDDIR}/phc-winner-argon2-${PVER}" |
16 | niro | 30631 | |
17 | niro | 30633 | msetfeature "!check" # makefile provide no check function |
18 | niro | 30631 | sminclude multilib mbuild |
19 | |||
20 | SRC_URI=( | ||
21 | https://github.com/P-H-C/phc-winner-argon2/archive/${PVER}/${SRCFILE} | ||
22 | mirror://${PNAME}/${SRCFILE} | ||
23 | ) | ||
24 | |||
25 | UP2SEPERATOR="\/" | ||
26 | UP2DATE="updatecmd https://github.com/P-H-C/phc-winner-argon2/releases | highesttarball gz" | ||
27 | |||
28 | src_compile() | ||
29 | { | ||
30 | mmake OPTTARGET=none || die | ||
31 | } | ||
32 | |||
33 | src_install() | ||
34 | { | ||
35 | mmake OPTTARGET=none DESTDIR=${BINDIR} LIBRARY_REL=$(mlibdir) install || die | ||
36 | |||
37 | # create and install a custon pkgconfig file | ||
38 | MCONFIG=${BUILDDIR}/libargon2.pc | ||
39 | mclearconfig | ||
40 | maddconfig 'prefix=/usr' | ||
41 | maddconfig 'exec_prefix=${prefix}' | ||
42 | maddconfig 'libdir=${prefix}/@@MLIBDIR@@' | ||
43 | maddconfig 'includedir=${prefix}/include' | ||
44 | maddconfig | ||
45 | maddconfig 'Name: libargon2' | ||
46 | maddconfig 'Description: Development libraries for libargon2' | ||
47 | maddconfig 'Version: @@PVER@@' | ||
48 | maddconfig 'Libs: -L${libdir} -largon2 -lrt -ldl' | ||
49 | maddconfig 'Cflags:' | ||
50 | maddconfig 'URL: https://github.com/P-H-C/phc-winner-argon2' | ||
51 | all-abis minstalldir /usr/'$(mlibdir)'/pkgconfig || die | ||
52 | all-abis minstallfile ${MCONFIG} /usr/'$(mlibdir)'/pkgconfig/ || die | ||
53 | all-abis sed -i -e 's:@@MLIBDIR@@:$(mlibdir):g' -e "s:@@PVER@@:${PVER}:g" /usr/'$(mlibdir)'/pkgconfig/libargon2.pc || die | ||
54 | } |