summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82a9f763ef8f0950b671008af1f58109e4224390 (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.2.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' 'alex' 'happy')
conflicts=()
replaces=()
backup=()
source=("https://github.com/Xandaros/GithubNotify/archive/${pkgver}.tar.gz")
md5sums=('ee729b318c8fa17f3df8ce9c0497c87f')

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"
}