added PKGBUILD

This commit is contained in:
Oscar Krause 2022-12-28 17:00:35 +01:00
parent 32a512b89b
commit 62af76b95a

View File

@ -7,13 +7,21 @@ arch=('any') # x86_64?
url="https://git.collinwebdesigns.de/oscar.krause/fastapi-dls" url="https://git.collinwebdesigns.de/oscar.krause/fastapi-dls"
#license=('MIT') #license=('MIT')
depends=('python3' 'python-fastapi' 'uvicorn' 'python-dotenv' 'python-dateutil' 'python-jose' 'python-sqlalchemy' 'python-pycryptodome' 'python-markdown' 'openssl') depends=('python3' 'python-fastapi' 'uvicorn' 'python-dotenv' 'python-dateutil' 'python-jose' 'python-sqlalchemy' 'python-pycryptodome' 'python-markdown' 'openssl')
source=('README.md' 'version.env' 'app/main.py' 'app/orm.py' 'app/util.py') source=() # 'README.md' 'version.env' 'app/main.py' 'app/orm.py' 'app/util.py'
sha512sums=("SKIP") sha512sums=("SKIP")
package() { package() {
mkdir -p "${pkgdir}/usr/share" mkdir -p "${pkgdir}/usr/share"
echo "pkgdir: ${pkgdir}"
echo "srcdir: ${srcdir}"
echo "startDir: ${startDir}"
cp "${srcdir}/README.md" "${pkgdir}/usr/share/README.md" cp "${srcdir}/README.md" "${pkgdir}/usr/share/README.md"
cp "${srcdir}/version.env" "${pkgdir}/usr/share/version.env" cp "${srcdir}/version.env" "${pkgdir}/usr/share/version.env"
cp -r "${srcdir}/app" "${pkgdir}/usr/share" cp -r "${srcdir}/app" "${pkgdir}/usr/share"
} }
# https://bbs.archlinux.org/viewtopic.php?id=213287
# https://itsfoss.com/create-pkgbuild/