summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f974b69ef7193f0c710f2cf85e3557bae95fbaba (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
pkgname=github-notify
_projectname=GithubNotify
pkgver=0.1.1
pkgrel=1
pkgdesc="GitHub notification notifier"
url="https://www.github.com/Xandaros/GithubNotify"
arch=('x86_64' 'i686')
license=('custom')
depends=('libnotify' 'notification-daemon')
makedepends=('cabal-install' 'ghc' 'gtk2hs-buildtools')
conflicts=()
replaces=()
backup=()
source=("https://github.com/Xandaros/GithubNotify/archive/${pkgver}.tar.gz")
md5sums=('727c42c7f2be8eaefaa09335bd6e390d')

build() {
  cd "$srcdir/$_projectname-$pkgver"
  rm cabal.config
  cabal update
  cabal sandbox init
  cabal install --only-dependencies
  cabal build $pkgname
}

package() {
  install -Dm755 "$srcdir/$_projectname-$pkgver/dist/build/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname"
}