blob: a7dbad9de2848a1fa6b7184df5982e5422a2ee9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Maintainer: Daniel Sandman <revoltism@gmail.com>
pkgname=systemd-manager-git
pkgver=0
pkgrel=1
pkgdesc="A program written with RUST that allow the user to manage their systemd services via a GTK3 GUI."
arch=('i686' 'x86_64')
url="https://github.com/mmstick/systemd-manager/"
license=('GPL2')
depends=('gtk3')
makedepends=('cargo')
provides=('systemd-manager')
source=("$pkgname::git+https://github.com/mmstick/systemd-manager/#branch=master")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$pkgname"
# sh install.sh
cargo build --release
}
package() {
cd "$srcdir/$pkgname"
install -D -m755 target/release/systemd-manager "$pkgdir/usr/local/bin/systemd-manager"
install -D -m755 systemd-manager-pkexec "$pkgdir/usr/local/bin/systemd-manager-pkexec"
install -D -m644 systemd-manager.desktop "$pkgdir/usr/share/applications/systemd-manager.desktop"
install -D -m644 org.freedesktop.policykit.systemd-manager.policy "$pkgdir/usr/share/polkit-1/actions/org.freedesktop.policykit.systemd-manager.policy"
install -D -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|