forked from oscar.krause/fastapi-dls
updated PKGBUILD
This commit is contained in:
parent
bb43fc3f49
commit
321cd17b02
@ -46,11 +46,16 @@ build:pamac:
|
||||
stage: build
|
||||
rules:
|
||||
- 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:
|
||||
- ls -lah
|
||||
- makepkg --help
|
||||
- makepkg -si
|
||||
- source PKGBUILD && pacman -Syu --noconfirm --needed --asdeps "${makedepends[@]}" "${depends[@]}"
|
||||
- ls -lah
|
||||
- sudo -u build makepkg --noextract #makepkg -si
|
||||
|
||||
test:
|
||||
image: python:3.10-slim-bullseye
|
||||
|
22
PKGBUILD
22
PKGBUILD
@ -1,23 +1,19 @@
|
||||
# Maintainer: Oscar Krause <oscar.krause@collinwebdesigns.de>
|
||||
pkgname=fastapi-dls
|
||||
pkgver=1.0.0
|
||||
pkgrel=3
|
||||
pkgrel=1
|
||||
pkgdesc="Minimal Delegated License Service (DLS)."
|
||||
arch=('any')
|
||||
arch=('any') # x86_64?
|
||||
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
|
||||
}
|
||||
source=('README.md' 'version.env' 'app/main.py' 'app/orm.py' 'app/util.py')
|
||||
sha512sums=("SKIP")
|
||||
|
||||
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"
|
||||
mkdir -p "${pkgdir}/usr/share"
|
||||
|
||||
cp "${srcdir}/README.md" "${pkgdir}/usr/share/README.md"
|
||||
cp "${srcdir}/version.env" "${pkgdir}/usr/share/version.env"
|
||||
cp -r "${srcdir}/app" "${pkgdir}/usr/share"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user