mirror of
https://git.collinwebdesigns.de/oscar.krause/fastapi-dls.git
synced 2024-11-23 23:41:06 +03:00
updated PKGBUILD
This commit is contained in:
parent
bb43fc3f49
commit
321cd17b02
@ -46,11 +46,16 @@ build:pamac:
|
|||||||
stage: build
|
stage: build
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "archlinux-makepkg"
|
- if: $CI_COMMIT_BRANCH == "archlinux-makepkg"
|
||||||
|
before_script:
|
||||||
|
- useradd --no-create-home --shell=/bin/false build && usermod -L build
|
||||||
|
- 'echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
||||||
|
- 'echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers'
|
||||||
|
- chown -R build:build .
|
||||||
script:
|
script:
|
||||||
- ls -lah
|
- ls -lah
|
||||||
- makepkg --help
|
- source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
|
||||||
- makepkg -si
|
|
||||||
- ls -lah
|
- ls -lah
|
||||||
|
- sudo -u build makepkg --noextract #makepkg -si
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: python:3.10-slim-bullseye
|
image: python:3.10-slim-bullseye
|
||||||
|
22
PKGBUILD
22
PKGBUILD
@ -1,23 +1,19 @@
|
|||||||
# Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de>
|
# Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de>
|
||||||
pkgname=fastapi-dls
|
pkgname=fastapi-dls
|
||||||
pkgver=1.0.0
|
pkgver=1.0.0
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc="Minimal Delegated License Service (DLS)."
|
pkgdesc="Minimal Delegated License Service (DLS)."
|
||||||
arch=('any')
|
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=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
|
source=('README.md' 'version.env' 'app/main.py' 'app/orm.py' 'app/util.py')
|
||||||
#sha256sums=('...')
|
sha512sums=("SKIP")
|
||||||
|
|
||||||
check() {
|
|
||||||
cd "$pkgname-$pkgver"
|
|
||||||
python3 "$pkgname.py" --version
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$pkgname-$pkgver"
|
mkdir -p "${pkgdir}/usr/share"
|
||||||
install -m 755 -TD "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
|
|
||||||
install -m 644 -TD "README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
|
cp "${srcdir}/README.md" "${pkgdir}/usr/share/README.md"
|
||||||
install -m 644 -TD "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
cp "${srcdir}/version.env" "${pkgdir}/usr/share/version.env"
|
||||||
|
cp -r "${srcdir}/app" "${pkgdir}/usr/share"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user