Skip to content

Instantly share code, notes, and snippets.

@gabrielmoura
Created August 17, 2017 00:21
Show Gist options
  • Save gabrielmoura/feb1771698e36f5924cc72b6c6fdf698 to your computer and use it in GitHub Desktop.
Save gabrielmoura/feb1771698e36f5924cc72b6c6fdf698 to your computer and use it in GitHub Desktop.
Pacote PKGBUILD para scrypt
# Maintainer: Dominic Black <thephenix@gmail.com>
# Maintainer: Gabriel Moura <g@srmoura.com.br>
pkgname=php-scrypt
pkgver="1.4.2"
pkgrel=1
pkgdesc="Derivation function designed to be far more secure against hardware brute-force attacks"
arch=('i686' 'x86_64')
url='https://github.com/DomBlack/php-scrypt'
license=('BSD2')
source=(
"$pkgname-master.tar.gz::https://github.com/DomBlack/php-scrypt/archive/master.tar.gz"
)
sha512sums=('b5d06813373007742f01da14b73bc3667796f32c51aa0fdf53f1de53d6c2e707c6bbbf4682a242fd8a85513c82f5afd3d70777a898306ef471dc9a80036533cc')
package() {
cd $pkgname-master
rm README.md
phpize
./configure --enable-scrypt
make
echo "; Enable scrypt extension module
extension=scrypt.so"
sudo make install
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment