summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10247647d6eb18090a4d0e5db8b3b25d3f224a3d (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
36
37
38
39
40
41
42
43
44
45
46
# Maintainer:  Greg Minshall <minshall at umich dot edu>
pkgname=org-cli-tangle
pkgver=0.1.8
pkgrel=1
pkgdesc="tangle source code blocks in emacs orgmode files from the command line"
arch=(any)
url="https://sr.ht/~minshall/org-cli-tangle/"
license=('MIT')
# pass is technically "optdepends"; but, the functionality without it
# is minimal
depends=(emacs)
makedepends=(asciidoc gawk git m4)
checkdepends=(cram)
# git rev-parse in upstream repo:
# git rev-parse 0.1.8
_tag=ba61e6846982af579739cf7169aacc38d68b0981
source=(git+https://git.sr.ht/~minshall/org-cli-tangle#tag=${_tag}?signed)
validpgpkeys=(
    BB68C8D3A3D23B9B398FB50AC397C74C54A9EC4F # Greg Minshall <minshall@acm.org>
)
sha256sums=('SKIP')


pkgver() {
    cd "${pkgname}"
    git describe
}

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

check() {
    cd "${pkgname}"

    make check
}

package() {
    cd "${pkgname}"

    make DESTDIR="${pkgdir}" PREFIX=/usr install
    # install our MIT license
    install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}/"
}