summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1b909f485d6ec85a7af8406fe95ce80eb5843ad (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
# Maintainer: Jiachen Yang <farseerfc@gmail.com>
pkgname=notify-desktop-git
_gitname=notify-desktop
pkgver=r23.9863919
pkgrel=2
pkgdesc="A replacement for notify-send with replaces-id support and less dependencies"
arch=(x86_64 i686)
url="https://github.com/nowrep/$_gitname"
license=('GPL2')
depends=('libdbus')
makedepends=('git')
options=(!emptydirs)
source=("git+https://github.com/nowrep/$_gitname")
sha256sums=('SKIP')

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

build() {
  cd "$srcdir/$_gitname"
  mkdir bin
  mkdir build
  cd src
  make
}

package() {
  cd "$srcdir/$_gitname"
  install -m755 -D bin/$_gitname "$pkgdir/usr/bin/$_gitname"
}

# vim:set ts=2 sw=2 et: