summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 705d04fbef9096c8bf9c58e0f9f990a8e4956a16 (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: Craig Cabrey <craigcabrey@gmail.com>
pkgname=grestful
pkgver=1.2.0
pkgrel=1
pkgdesc="A simple RESTful API client written in GTK 3."
arch=("i686" "x86_64")
url="https://github.com/gert-dev/grestful"
license=("MPL")
depends=("gtk3" "gtksourceview3" "curl")
makedepends=("dub" "dmd")
source=("https://github.com/Gert-dev/grestful/archive/${pkgver}.tar.gz")
md5sums=("0005f6628f0a0e195a5ed83b1a27d60c")

build() {
  cd "${pkgname}-${pkgver}"
  dub build --build=release
}

package() {
  builddir="${srcdir}/${pkgname}-${pkgver}"
  mkdir -p "${pkgdir}/usr/bin"
  cp "${builddir}/grestful" "${pkgdir}/usr/bin/grestful"
  mkdir -p "${pkgdir}/usr/share/grestful"
  cp -R "${builddir}/public/design" "${pkgdir}/usr/share/grestful/"
  mkdir -p "${pkgdir}/usr/share/applications"
  cp -R "${builddir}/public/grestful.desktop" "${pkgdir}/usr/share/applications/"
}