Files
gentoo/app-crypt/libscrypt/libscrypt-1.21.ebuild
T
Sergei Trofimovich 9f5166d317 app-crypt/libscrypt: stable 1.21 for sparc, bug #623388 (thanks to Rolf Eike Beer)
Package-Manager: Portage-2.3.13, Repoman-2.3.4
RepoMan-Options: --include-arches="sparc"
2017-11-04 22:05:18 +00:00

37 lines
709 B
Bash

# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit toolchain-funcs
DESCRIPTION="Shared library to impliment the scrypt algorithm"
HOMEPAGE="https://github.com/technion/libscrypt"
SRC_URI="https://github.com/technion/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="amd64 arm ~mips ppc ppc64 sparc x86"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-build.patch"
)
pkg_setup() {
export LIBDIR=${PREFIX}/$(get_libdir)
export CFLAGS_EXTRA="${CFLAGS}"
export LDFLAGS_EXTRA="${LDFLAGS}"
export PREFIX=/usr
unset CFLAGS
unset LDFLAGS
}
src_compile() {
emake \
CC=$(tc-getCC)
}