summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aed7b24ae7af7ebe49d4ed1218e57be680238203 (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
# Contributor: Rorschach <r0rschach@lavabit.com>
# Contributor: Andrew Kravchuk <awkravchuk@gmail.com>
# Contributor: aericson <de.ericson@gmail.com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=aarchup-git
pkgver=2.1.0.r1.ga8e4cf5
pkgrel=1
pkgdesc="Fork of archup a small and lightweight update-notifier for archlinux."
url="https://github.com/inglor/aarchup"
arch=('i686' 'x86_64')
license=('GPL')
depends=('libnotify' 'gtk2')
makedepends=('git' 'cmake' 'ninja')
source=("git+https://github.com/inglor/aarchup.git")
md5sums=('SKIP')
conflicts=('aarchup')
provides=('aarchup')
optdepends=('auracle: AUR support(--aur)')
install=aarchup.install

pkgver() {
  cd ${pkgname%-git}
  git describe --tags | sed 's+-+.r+' |tr - .
}

build() {
  cd ${pkgname%-git}/src
  cmake .. -G Ninja \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr
  ninja all
}

package() {
  cd ${pkgname%-git}/src
  DESTDIR="$pkgdir/" ninja install
}