summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bd5cdbe686b1af331f100959ca8a13343917615 (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
# Packager: Joseph R. Quinn <quinn.josephr@protonmail.com>
# Maintainer: Joseph R. Quinn <quinn.josephr@protonmail.com>
pkgname=zshdb-git
pkgver=1.1.0
pkgrel=1
pkgdesc='A debugger for zsh scripts.'
arch=('i686' 'x86_64')
url='https://github.com/rocky/zshdb'
license=('GPL')
depends=('zsh')
makedepends=('git')
provides=('zshdb')
source=('git+https://github.com/rocky/zshdb.git')
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --tags | sed 's/^release.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${pkgname%-git}
  ./autogen.sh --prefix=/usr
  make
}

package() {
  cd ${pkgname%-git}
  make DESTDIR=$pkgdir install
}