cruxports/python3-sqlalchemy/Pkgfile

25 lines
686 B
Plaintext

# Description: python tools for accessing and manipulating databases
# URL: https://sqlalchemy.org
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-greenlet python3-typing_extensions
# Nice to have: python3-cython
name=python3-sqlalchemy
version=1.4.46
release=1
source=(https://github.com/${name#*-}/${name#*-}/archive/refs/tags/rel_${version//./_}.tar.gz)
renames=($name-$version.tar.gz)
build() {
cd ${name#*-}-*
/usr/bin/python3 setup.py build
/usr/bin/python3 setup.py install --skip-build \
--optimize=1 --prefix=/usr --root="$PKG"
find $PKG \( \
-iname "LICENSE.txt" -o \
-iname "*README*" \
\) -delete
chmod -R g-w $PKG
}