summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 96bae44934281c8a6661b28311362ce4e5e17500 (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
# Maintainer: Eduard Toloza <tolosaeduard@gmail.com>

pkgname=upcheck
pkgver=0.1.3
pkgrel=1
pkgdesc='Checker for ArchLinux available updates and send it via notify-rust.'
arch=('x86_64')
url='https://gitlab.com/edu4rdshl/upcheck'
license=('GPL3')
depends=('pacman-contrib')
makedepends=('git' 'cargo')
source=("git+https://github.com/Edu4rdSHL/$pkgname.git")
sha512sums=('SKIP')

build() {
  cd $pkgname

  cargo build --release --locked
}

package() {
  cd "${pkgname}-${pkgver}"

  install -Dm 755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm 755 README.md "$pkgdir/usr/share/doc/$pkgname/README"
  install -Dm 644 "$pkgname.service" "$pkgdir/usr/lib/systemd/user/$pkgname.service"
}