Annotation of /trunk/core/argon2/argon2-20190702-r2.smage2
Parent Directory | Revision Log
Revision 32935 -
(hide annotations)
(download)
Mon Oct 7 07:27:25 2019 UTC (4 years, 7 months ago) by niro
File size: 1393 byte(s)
Mon Oct 7 07:27:25 2019 UTC (4 years, 7 months ago) by niro
File size: 1393 byte(s)
-fixed libdir
1 | niro | 32935 | # $Id$ |
2 | |||
3 | PNAME="argon2" | ||
4 | PVER="20190702" | ||
5 | PBUILD="r2" | ||
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 | SRCDIR="${BUILDDIR}/phc-winner-argon2-${PVER}" | ||
16 | |||
17 | msetfeature "!check" # makefile provide no check function | ||
18 | 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 LIBRARY_REL='$(mlibdir)' || die | ||
31 | } | ||
32 | |||
33 | src_install() | ||
34 | { | ||
35 | mmake OPTTARGET=none LIBRARY_REL='$(mlibdir)' DESTDIR=${BINDIR} install || die | ||
36 | |||
37 | # create and install a custon pkgconfig file | ||
38 | cat > ${BUILDDIR}/libargon2.pc << 'EOF' | ||
39 | prefix=/usr | ||
40 | exec_prefix=${prefix} | ||
41 | libdir=${prefix}/@@MLIBDIR@@ | ||
42 | includedir=${prefix}/include | ||
43 | |||
44 | Name: libargon2 | ||
45 | Description: Development libraries for libargon2 | ||
46 | Version: @@PVER@@ | ||
47 | Libs: -L${libdir} -largon2 -lrt -ldl | ||
48 | Cflags: | ||
49 | URL: https://github.com/P-H-C/phc-winner-argon2 | ||
50 | EOF | ||
51 | |||
52 | all-abis minstalldir /usr/'$(mlibdir)'/pkgconfig || die | ||
53 | all-abis minstallfile ${BUILDDIR}/libargon2.pc /usr/'$(mlibdir)'/pkgconfig/ || die | ||
54 | all-abis sed -i -e 's:@@MLIBDIR@@:$(mlibdir):g' -e "s:@@PVER@@:${PVER}:g" ${BINDIR}/usr/'$(mlibdir)'/pkgconfig/libargon2.pc || die | ||
55 | } |