diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..223f24b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +# Maintainer: Janis Hutz +pkgname=biogascontrollerapp +pkgver=3.0 +pkgrel=1 +pkgdesc="Utility Software to control the Biogas plant of ENATECH at KSWO" +arch=('x86_64') +url="https://github.com/janishutz/BiogasControllerApp" +license=('GPL-3.0-or-later') +depends=('python') +makedepends=('pyinstaller' 'python-setuptools') +source=("biogascontrollerapp/biogascontrollerapp.py") +sha256sums=('SKIP') # Replace with actual checksum for production use + +build() { + cd "$srcdir" + pyinstaller --onefile biogascontrollerapp.py +} + +package() { + install -Dm755 "$srcdir/dist/myscript" "$pkgdir/usr/bin/myscript" +} diff --git a/biogascontrollerapp/BiogasControllerApp.spec b/biogascontrollerapp/BiogasControllerApp.spec new file mode 100644 index 0000000..0ce1623 --- /dev/null +++ b/biogascontrollerapp/BiogasControllerApp.spec @@ -0,0 +1,58 @@ +# -*- mode: python ; coding: utf-8 -*- +from kivy_deps import sdl2, glew + +block_cipher = None + + +a = Analysis( + ['biogascontrollerapp.py'], + pathex=[], + binaries=[], + datas=[], + hiddenimports=[], + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, +) + +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='BiogasControllerApp', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, + icon='BiogasControllerAppLogo.ico', +) + +coll = COLLECT( + exe, + Tree('.'), + a.binaries, + a.zipfiles, + a.datas, + *[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)], + strip=False, + upx=True, + name='biogascontrollerapp' +) diff --git a/biogascontrollerapp/BiogasControllerAppLogo.ico b/biogascontrollerapp/BiogasControllerAppLogo.ico new file mode 100644 index 0000000..f42f729 Binary files /dev/null and b/biogascontrollerapp/BiogasControllerAppLogo.ico differ diff --git a/pkg/build b/pkg/build new file mode 100755 index 0000000..d2a3acc --- /dev/null +++ b/pkg/build @@ -0,0 +1,8 @@ +#!/bin/sh + +# Build deb +dpkg-deb --build deb + + +# Build rpm +rpmbuild -ba ./rpm-build/SPECS/biogascontrollerapp.spec diff --git a/pkg/deb/DEBIAN/control b/pkg/deb/DEBIAN/control new file mode 100644 index 0000000..9bdaec7 --- /dev/null +++ b/pkg/deb/DEBIAN/control @@ -0,0 +1,7 @@ +Package: biogascontrollerapp +Version: 3.0 +Section: education +Priority: optional +Architecture: amd64 +Maintainer: Janis Hutz +Description: Utility Software to control the Biogas plant of ENATECH at KSWO diff --git a/pkg/rpm-build/SPECS/biogascontrollerapp.spec b/pkg/rpm-build/SPECS/biogascontrollerapp.spec new file mode 100644 index 0000000..dec57d7 --- /dev/null +++ b/pkg/rpm-build/SPECS/biogascontrollerapp.spec @@ -0,0 +1,25 @@ +Name: biogascontrollerapp +Version: 3.0 +Release: 1%{?dist} +Summary: Utility Software to control the Biogas plant of ENATECH at KSWO + +License: GPL +URL: http://github.com/janishutz/BiogasControllerApp +Source0: biogascontrollerapp-3.0.tar.gz + +%description +Utility Software to control the Biogas plant of ENATECH at KSWO + +%prep +%setup -q + +%build + +%install +mkdir -p %{buildroot}/usr/local/bin +cp biogascontrollerapp %{buildroot}/usr/local/bin/ + +%files +/usr/local/bin/biogascontrollerapp + +%changelog