summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd308b733cbe23da7092fca34e3e7d2922204e4c (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: hendrik@hoodie.de
_pkgname=toastify
pkgname=${_pkgname}-git
pkgver=v0.3.0.r0.gdee957d
pkgrel=1
pkgdesc='Replacement for notify-send written in Rust.'
arch=('i686' 'x86_64')
url="https://github.com/hoodie/toastify"
license=('MIT/Apache-2.0')
depends=('libdbus')
makedepends=('rust' 'cargo')
source=("git+https://github.com/hoodie/toastify.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/$_pkgname/"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

package() {
    install -Dm755  "$srcdir/$_pkgname/target/release/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}