51 lines
1.0 KiB
Bash
51 lines
1.0 KiB
Bash
#!/usr/bin/env bash
|
|
name='libxcrypt'
|
|
release='1'
|
|
version='4.4.33'
|
|
url='https://example.org'
|
|
description='Modern library for one-way hashing of passwords'
|
|
email='aliriza.keskin@pardus.org.tr'
|
|
maintainer='aliriza'
|
|
license=('GPLv3')
|
|
source=("https://github.com/besser82/libxcrypt/releases/download/v4.4.33/libxcrypt-${version}.tar.xz")
|
|
depends=( )
|
|
makedepends=( )
|
|
md5sums=('d83b7bb334c4daf4e64a253b78f320da')
|
|
uses=()
|
|
# override glibc libcrypt
|
|
replaces=('/usr/include/crypt.h')
|
|
group=(sys.libs)
|
|
arch=('x86_64')
|
|
|
|
cd $name-$version
|
|
|
|
prepare(){
|
|
cp -rf ../$name-$version ../$name-compat
|
|
}
|
|
|
|
setup(){
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64 \
|
|
--enable-hashes=strong,glibc \
|
|
--enable-obsolete-api=glibc
|
|
cd ../$name-compat
|
|
./configure --prefix=/usr \
|
|
--libdir=/usr/lib64 \
|
|
--enable-hashes=strong,glibc \
|
|
--enable-obsolete-api=no
|
|
}
|
|
|
|
build(){
|
|
make -j`nproc`
|
|
cd ../$name-compat
|
|
make -j`nproc`
|
|
}
|
|
|
|
package(){
|
|
make install -j`nproc`
|
|
cd ../$name-compat
|
|
make install -j`nproc`
|
|
|
|
}
|
|
|