summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 331350b33bdd2a63918b47666234d23da314c324 (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: Your Name <youremail@domain.com>
pkgname=pikchr
pkgver=1.0
pkgrel=1
pkgdesc="Pikchr (pronounced \"picture\") is a PIC-like markup language for diagrams in technical documentation."
arch=('any')
url="https://pikchr.org"
license=('0-clause-BSD')
makedepends=('make')
checkdepends=('xdg-utils')
provides=('pikchr')
source=("$pkgname-$pkgver.tar.gz::${url}/home/tarball/trunk/${pkgname}.tar.gz"
        "Makefile.patch")
sha256sums=('f4623761f8bfb2443cb6e7830439e8230508d033ddf39c2c333a6d261fc87180'
            '01270058bf34befe56d2e1b845a6b05d7c40381b902331b186325577cd1b7552')

prepare() {
	cd "$pkgname"
	patch -i "$srcdir/Makefile.patch"
}

build() {
	cd "$pkgname"
	make
}

check() {
	cd "$pkgname"
	make -k test
}

package() {
	cd "$pkgname"
    install -Dm755 "./$pkgname" "${pkgdir}/usr/bin/${pkgname}"
}