void-packages/srcpkgs/sam/template

42 lines
1.2 KiB
Bash
Raw Normal View History

2015-02-19 09:40:24 +00:00
# Template file for 'sam'
pkgname=sam
2016-11-15 15:23:31 +00:00
version=20161021
2016-09-02 14:47:41 +00:00
revision=1
2016-11-15 15:23:31 +00:00
_githash=463c87a908760e0220276a0ef58295c246485414
2016-05-23 13:31:04 +00:00
wrksrc="${pkgname}-${_githash}"
2015-02-19 09:40:24 +00:00
disable_parallel_build=yes
makedepends="libXft-devel libXt-devel"
short_desc="Screen editor with structural regular expressions"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT-like"
homepage="http://www.deadpixi.com/an-updated-version-of-sam"
2016-05-23 13:31:04 +00:00
distfiles="https://github.com/deadpixi/${pkgname}/archive/${_githash}.tar.gz"
2016-11-15 15:23:31 +00:00
checksum=786b0ddff35cb61eabee7ac213cd68e88d0484c0f5f30725e41a40702853fa05
2016-09-02 14:47:41 +00:00
CFLAGS="-std=c99"
2015-02-19 09:40:24 +00:00
post_extract() {
2016-08-28 13:46:21 +00:00
sed -i '/-o rsam/s/$/ $(LDFLAGS)/' rsam/Makefile
sed -i '/LDFLAGS/d' rsam/Makefile
2015-02-19 09:40:24 +00:00
}
do_build() {
case "$XBPS_TARGET_MACHINE" in
i686*|armv*) USE64BITS=0;;
2015-05-16 14:25:24 +00:00
x86_64*|aarch64*) USE64BITS=1;;
2015-02-19 09:40:24 +00:00
*) msg_error "Unknown word length for $XBPS_TARGET_MACHINE";;
esac
2016-05-23 13:31:04 +00:00
make ${makejobs} CC="${CC} ${CFLAGS}" DESTDIR=/usr LDFLAGS="$LDFLAGS" \
2016-08-28 13:50:41 +00:00
INCLUDES=-I${XBPS_CROSS_BASE}/usr/include/freetype2 \
2015-02-19 09:40:24 +00:00
RXSAMNAME=rsam TERMNAME=/usr/bin/samterm USE64BITS=${USE64BITS}
}
do_install() {
2016-05-23 13:31:04 +00:00
vmkdir usr/bin
vmkdir usr/share/man/man1
make install DESTDIR=${DESTDIR}/usr
2015-02-19 09:40:24 +00:00
vlicense LICENSE
vdoc doc/se.ps
vdoc doc/sam.tut.ms
}