void-packages/srcpkgs/snappy/template
2017-07-29 08:58:56 +02:00

33 lines
795 B
Bash

# Template file for 'snappy'
pkgname=snappy
version=1.1.6
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool pkg-config"
makedepends="zlib-devel lzo-devel"
short_desc="A fast compressor/decompressor library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://google.github.io/snappy"
license="BSD"
distfiles="https://github.com/google/snappy/archive/${version}.tar.gz"
checksum=6fa92cde5b2caefd0d9a60336991ba42e5a7ddc3bdc36c5610451373751d0495
pre_configure() {
autoreconf -fi
ln -s README.md README
}
post_install() {
vlicense COPYING
}
snappy-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}