diff options
author | Mark Wagie | 2021-10-06 11:21:42 -0600 |
---|---|---|
committer | Mark Wagie | 2021-10-06 11:21:42 -0600 |
commit | 7766b5e7a50b074b1d69968d6e70ef8d8ca5de52 (patch) | |
tree | f3bff1f5f84e179135a8bad18501221023f4086c /PKGBUILD | |
download | aur-7766b5e7a50b074b1d69968d6e70ef8d8ca5de52.tar.gz |
initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..31a08fdb7ca4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> +pkgname=slimbookintelcontroller +pkgver=0.2beta +pkgrel=1 +pkgdesc="Application for the performance management of Intel processors" +arch=('any') +url="https://slimbook.es" +license=('GPL2') +depends=('gtk3' 'intel-undervolt' 'libnotify' 'pciutils' 'python-dbus' 'python-gobject' + 'python-pillow' 'systemd-libs') +optdepends=('libappindicator-gtk3: tray icon') +install="$pkgname.install" +source=("https://launchpad.net/~slimbook/+archive/ubuntu/slimbook/+files/${pkgname}_${pkgver}_all.deb") +sha256sums=('2a36bb471c488714dc15261bfa6a2d06cfd1e08a2a409a1cb6ac354f2587e055') + +package() { + bsdtar xf data.tar.xz -C "$pkgdir" + + # Remove duplicate GPL2 license & changelog.gz + rm -rf "$pkgdir/usr/share/doc" + + # Install locales + cd "$pkgdir/usr/share/$pkgname/src/locale" + for lang in $(ls -d */); do + install -d "$pkgdir/usr/share/locale/${lang}LC_MESSAGES" + mv "$pkgdir/usr/share/$pkgname/src/locale/${lang}LC_MESSAGES"/*.mo \ + "$pkgdir/usr/share/locale/${lang}LC_MESSAGES" + done + rm -rf "$pkgdir/usr/share/$pkgname/src/locale" + rm "$pkgdir/usr/share/$pkgname/src/update_po.sh" + + # App permissions + chmod +x "$pkgdir/usr/lib/systemd/system-sleep/$pkgname" +} |