cruxports/python3-sqlalchemy/Pkgfile

25 lines
686 B
Plaintext
Raw Normal View History

2022-02-18 17:40:09 -05:00
# 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
2022-02-18 17:40:09 -05:00
# Nice to have: python3-cython
name=python3-sqlalchemy
version=1.4.46
2022-02-18 17:40:09 -05:00
release=1
source=(https://github.com/${name#*-}/${name#*-}/archive/refs/tags/rel_${version//./_}.tar.gz)
2022-02-18 17:40:09 -05:00
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
}