summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ddbb25ce1dd2053bf64335aa03f993768eeb6ab4 (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
# Maintainer: Greizgh <greizgh@ephax.org>
pkgname=usbautomator
pkgver=0.3.1
pkgrel=1
pkgdesc="Execute commands when USB device is un/plugged"
arch=('i686' 'x86_64')
url="https://github.com/greizgh/usbautomator"
license=('GPL3')
# Depends on libudev
depends=('libsystemd')
makedepends=('cargo')
provides=(usbautomator)
source=("$pkgname-$pkgver.tar.gz::https://github.com/greizgh/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('7887dab861595c31930050f28c37848468d0eb51b15b47d2e8d0b2da00a95293')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cargo build --release
}

package() {
  cargo install --root "$pkgdir/usr" --path "$srcdir/$pkgbase-$pkgver"
  rm "$pkgdir/usr/.crates.toml"
}