forked from oscar.krause/fastapi-dls
added PKGBUILD
This commit is contained in:
parent
837721fd7b
commit
12f661707f
@ -15,8 +15,7 @@ build:docker:
|
|||||||
- docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
|
- docker build . --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
|
||||||
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
|
- docker push ${CI_REGISTRY}/${CI_PROJECT_PATH}/${CI_BUILD_REF_NAME}:${CI_BUILD_REF}
|
||||||
|
|
||||||
build:package:
|
build:apt:
|
||||||
# debian:bullseye-slim
|
|
||||||
image: debian:bookworm-slim # just to get "python3-jose" working
|
image: debian:bookworm-slim # just to get "python3-jose" working
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
@ -42,6 +41,16 @@ build:package:
|
|||||||
paths:
|
paths:
|
||||||
- build/build.deb
|
- build/build.deb
|
||||||
|
|
||||||
|
build:pamac:
|
||||||
|
image: archlinux:base-devel
|
||||||
|
stage: build
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_BRANCH == "archlinux-makepkg"
|
||||||
|
script:
|
||||||
|
- ls -lah
|
||||||
|
- makepkg
|
||||||
|
- ls -lah
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: python:3.10-slim-bullseye
|
image: python:3.10-slim-bullseye
|
||||||
stage: test
|
stage: test
|
||||||
@ -60,7 +69,7 @@ test:
|
|||||||
.test:linux:
|
.test:linux:
|
||||||
stage: test
|
stage: test
|
||||||
needs:
|
needs:
|
||||||
- job: build:package
|
- job: build:apt
|
||||||
artifacts: true
|
artifacts: true
|
||||||
variables:
|
variables:
|
||||||
DEBIAN_FRONTEND: noninteractive
|
DEBIAN_FRONTEND: noninteractive
|
||||||
@ -130,7 +139,7 @@ deploy:debian:
|
|||||||
- DEBIAN/**/*
|
- DEBIAN/**/*
|
||||||
- app/**/*
|
- app/**/*
|
||||||
needs:
|
needs:
|
||||||
- job: build:package
|
- job: build:apt
|
||||||
artifacts: true
|
artifacts: true
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq && apt-get install -qq -y curl lsb-release
|
- apt-get update -qq && apt-get install -qq -y curl lsb-release
|
||||||
|
23
PKGBUILD
Normal file
23
PKGBUILD
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de>
|
||||||
|
pkgname=fastapi-dls
|
||||||
|
pkgver=1.0.0
|
||||||
|
pkgrel=3
|
||||||
|
pkgdesc="Minimal Delegated License Service (DLS)."
|
||||||
|
arch=('any')
|
||||||
|
url="https://git.collinwebdesigns.de/oscar.krause/fastapi-dls"
|
||||||
|
#license=('MIT')
|
||||||
|
depends=('python3' 'python-fastapi' 'uvicorn' 'python-dotenv' 'python-dateutil' 'python-jose' 'python-sqlalchemy' 'python-pycryptodome' 'python-markdown' 'openssl')
|
||||||
|
#source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
||||||
|
#sha256sums=('...')
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
python3 "$pkgname.py" --version
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$pkgname-$pkgver"
|
||||||
|
install -m 755 -TD "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
|
||||||
|
install -m 644 -TD "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||||
|
install -m 644 -TD "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user