summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 08fa062fe74d59d7443d125d167c13a2cf99ff02 (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
# Maintainer: Peter PJT (pjtsearch) <peterpjtsearch at gmail dot com>

pkgname=rptable-git
pkgver=v1.0.0.r0.g0e7284a
pkgrel=1
pkgdesc="A simple periodic table viewer for GTK written in Rust"
arch=('x86_64')
url="https://github.com/pjtsearch/rptable"
license=('GPL3')
depends=('gtk3')
makedepends=('git' 'rust')
options=('!strip')
provides=("rptable")
_pkgname="rptable"
source=("git+https://github.com/pjtsearch/rptable")

md5sums=('SKIP')

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

build(){
    cd "${_pkgname}"
    make
}

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