summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 10bbacd34b1a83d2da36b12424ce686f1c8f3566 (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
# Maintainer: Gaetan Bisson <bisson@archlinux.org>

pkgname=sgfutils
pkgver=0.25
pkgrel=1
pkgdesc='Collection of command line utilities that help working with SGF files'
url='https://homepages.cwi.nl/~aeb/go/sgfutils/'
license=('GPL')
arch=('x86_64')
depends=('openssl')
source=("${url}${pkgname}-${pkgver}.tgz")
sha256sums=('4b26b321fbe255722f1d7e57233614da89a4da5bab031ae4ef7118ae3c7436a2')

build() {
	cd "${srcdir}/${pkgname}-${pkgver}"
	sed 's/^CFLAGS=/CFLAGS+=/' -i Makefile
	make all
}

package() {
	cd "${srcdir}/${pkgname}-${pkgver}"

	ls | while read i; do
	if [[ ! -d "$i" && -x "$i" ]]; then
		install -D "$i" "${pkgdir}/usr/bin/$i"
	fi
	done

	install -d "${pkgdir}/usr/share/doc/${pkgname}"
	cp -a html/* "${pkgdir}/usr/share/doc/${pkgname}"
}