summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5f9d1a63734dcae6e9c0fbdecc441121c428503f (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
# Maintainer:  twa022 <twa022 at gmail dot com>

_pkgname=gcsvedit
pkgname=${_pkgname}-git
epoch=2
_pkgver=0.8.0
pkgver=0.8.0+58+c1c7746
pkgrel=2
pkgdesc='Simple text editor for CSV, TSV and other kinds of delimiter-separated values (DSV) files.'
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://github.com/goetzc/gCSVedit"
license=('GPL3')
depends=('gtk3' 'libxml2' 'tepl' 'gtksourceview4')
makedepends=('git')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  _rel_commit='0ca2625594c094ed4b8dd98a11e3c7a0a9747318'
  printf "%s+%s+%s" "${_pkgver}" "$(( `git rev-list --count HEAD` - `git rev-list --count ${_rel_commit}` ))" "$( git rev-parse --short HEAD )"
}

build() {
    cd "${_pkgname}"
    ./autogen.sh --prefix=/usr
    make
}

package() {
    cd "${_pkgname}"
    make DESTDIR="$pkgdir" install
}