wip pkger

This commit is contained in:
Ilya Zlobintsev 2023-02-23 22:31:31 +02:00
parent 5e0fb5913a
commit 1927b579d7
5 changed files with 52 additions and 1 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@ AppDir/
*.AppImage
*.AppImage.zsync
appimage-build/
*.stignore
*.stignore
pkg/output

15
.pkger.yml Normal file
View File

@ -0,0 +1,15 @@
---
recipes_dir: pkg/recipes
output_dir: pkg/output
images_dir: pkg/images
log_dir: ~
runtime_uri: ~
gpg_key: ~
gpg_name: ~
ssh: ~
images:
- name: debian
target: deb
- name: fedora-37
target: rpm
custom_simple_images: ~

View File

@ -0,0 +1 @@
FROM debian:bookworm

View File

@ -0,0 +1 @@
FROM fedora:37

View File

@ -0,0 +1,33 @@
metadata:
name: lact
description: AMDGPU control utility
arch: x86_64
license: MIT
version: 0.2.0
maintainer: ilya-zlobintsev
url: https://github.com/ilya-zlobintsev/lact
source:
- '../../..'
provides: [ lact ]
depends:
all: [ hwdata ]
debian: [ libgtk-4-1 ]
fedora-37: [ gtk4 ]
build_depends:
all: [ curl, make ]
debian: [ libgtk-4-dev, pkg-config, build-essential ]
fedora-37: [ gtk4-devel, gcc ]
images: [ debian, fedora-37 ]
env:
RUSTUP_URL: https://sh.rustup.rs
configure:
steps:
- cmd: curl -o /tmp/install_rust.sh $RUSTUP_URL
- cmd: sh /tmp/install_rust.sh -y --default-toolchain stable
build:
steps:
- cmd: bash -c "source $HOME/.cargo/env && make"
install:
steps:
- cmd: bash -c "cd $PKGER_BLD_DIR && DESTDIR=$PKGER_OUT_DIR/usr make install"