blob: 6e63b6a9575ade420d2af9c105c8c90d322f2a09 (
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: Baptiste Jonglez <baptiste--aur at jonglez dot org>
# Contributor: Jan-Erik Rediger <badboy at archlinux dot us>
pkgname=xplot
pkgver=0.90.7.1
pkgrel=9
pkgdesc="Reads from a xpl file to generate plots"
arch=('x86_64')
url="http://www.xplot.org/"
license=('MIT')
depends=('libx11' 'perl')
source=("http://www.xplot.org/xplot/$pkgname-$pkgver.tar.gz")
md5sums=('755e32f8ae429f1c546fdeee7c28c92e')
sha256sums=('01ceac45540f2d01e6ffe368cc0e950f4bb7fe1d235efde5349a09199e662240')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
CFLAGS+=" -Wno-implicit-int -Wno-implicit-function-declaration -std=gnu17" \
./configure --prefix="${pkgdir}/usr"
sed -e "s|mandir = \$(exec_prefix)/man/man1|mandir = \$(exec_prefix)/share/man/man1|" -i Makefile
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make install
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/"
sed -n '2,31p' "${srcdir}/${pkgname}-${pkgver}/xplot.c" > "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|