summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7298242d51f2410eeed82164a9119bc5a79b10c4 (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
36
37
38
# Maintainer:

_pkgname="app2unit"
pkgname="$_pkgname-git"
pkgver=r5.7a88a4a
pkgrel=2
pkgdesc="Utility to launch commands as systemd user units"
url="https://github.com/Vladimir-csp/app2unit"
license=('GPL-3.0-only')
arch=('any')

depends=(
  libnotify
  sh
  systemd
)
makedepends=(
  git
)

provides=("$_pkgname")
conflicts=("$_pkgname")

_pkgsrc="$_pkgname"
source=("$_pkgsrc"::"git+$url.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgsrc"
  printf "r%s.%s" \
    "$(git rev-list --count HEAD)" \
    "$(git rev-parse --short=7 HEAD)"
}

package() {
  install -Dm755 "$_pkgsrc/app2unit" -t "$pkgdir/usr/bin/"
  install -Dm644 "$_pkgsrc/README.md" -t "$pkgdir/usr/share/doc/$_pkgname/"
}