Files
main/util/crypt/libxcrypt/actions.py
T
2021-01-14 20:12:08 +03:00

28 lines
807 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def setup():
autotools.autoreconf("-fi")
autotools.configure("--prefix=/usr \
--disable-static \
--enable-hashes=strong,glibc \
--enable-obsolete-api=no \
--disable-failure-tokens")
def build():
autotools.make()
def install():
autotools.install()
# Fix conflicts with glibc
pisitools.rename("/usr/lib/libcrypt.so", "libxcrypt.so")
pisitools.rename("/usr/include/crypt.h", "xcrypt.h")
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING.LIB")