updated PKGBUILD

This commit is contained in:
Oscar Krause 2022-12-28 15:57:55 +01:00
parent bb43fc3f49
commit 321cd17b02
2 changed files with 16 additions and 15 deletions

View File

@ -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

View File

@ -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"
} }