Skip to content

Commit

Permalink
add DEB packaging scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zocker-160 committed Jan 13, 2023
1 parent 2125f6c commit 914e160
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
30 changes: 30 additions & 0 deletions linux_packaging/DEB-thinkfan-ui/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Maintainer: zocker_160 <zocker1600 at posteo dot net>

pkgname=thinkfan-ui
pkgver=0.9
pkgrel=1
pkgdesc="A small gui app for Linux to control the fan speed and monitor temps on a ThinkPad"
arch=('x86_64')
url="https://github.com/zocker-160/thinkfan-ui"
license=('GPLv3')
depends=('python3' 'python3-pyqt5' 'lm-sensors' 'policykit-1')
#conflicts=('')
source=("git+https://github.com/zocker-160/thinkfan-ui.git#tag=$pkgver")
sha256sums=('SKIP')

prerm="prerm"

build() {
cd $srcdir/$pkgname
# nothing to see here
}

package() {
cd $srcdir/$pkgname

install -d -m755 src "$pkgdir"/usr/lib/"$pkgname"
cp -r src/* "$pkgdir"/usr/lib/"$pkgname"
install -D -m755 linux_packaging/assets/thinkfan-ui -t "$pkgdir"/usr/bin
install -D -m644 linux_packaging/assets/thinkfan-ui.svg -t "$pkgdir"/usr/share/icons/hicolor/scalable/apps
install -D -m644 linux_packaging/assets/thinkfan-ui.desktop -t "$pkgdir"/usr/share/applications
}
4 changes: 4 additions & 0 deletions linux_packaging/DEB-thinkfan-ui/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#! /bin/bash

find /usr/lib/thinkfan-ui -type f -iname \*.pyc -delete
find /usr/lib/thinkfan-ui -type d -iname __pycache__ -delete

0 comments on commit 914e160

Please sign in to comment.