cruxports/python3-sqlalchemy/Pkgfile

26 lines
697 B
Plaintext
Executable File

# Description: python tools for accessing and manipulating databases
# URL: https://sqlalchemy.org
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: python3-greenlet
# Nice to have: python3-cython
name=python3-sqlalchemy
version=1.4.41
uversion=$(echo $version | sed 's/\./_/g')
release=1
source=(https://github.com/${name#*-}/${name#*-}/archive/refs/tags/rel_$uversion.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
}