--- /dev/null
+###############################################################################
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
+###############################################################################
+
+name = xxhash
+version = 0.8.1
+release = 1
+
+groups = System/Libraries
+url = https://www.xxhash.com/
+license = BSD and GPLv2+
+summary = Extremely fast hash algorithm
+
+description
+ xxHash is an Extremely fast Hash algorithm, running at RAM speed
+ limits.
+end
+
+source_dl = https://github.com/Cyan4973/xxHash/archive/v%{version}/
+sources = %{thisapp}.tar.gz
+
+build
+ DIR_APP = %{DIR_SRC}/xxHash-%{version}
+
+ make_build_targets += \
+ MOREFLAGS="%{CFLAGS} %{LDFLAGS}"
+
+ test
+ make check
+ make test-xxhsum-c
+ end
+
+ make_install_targets += \
+ PREFIX=%{prefix} \
+ LIBDIR=%{libdir}
+
+ install_cmds
+ # Fix broken symlinks.
+ for bit in 32 64 128; do
+ ln -svf xxhsum.1 %{BUILDROOT}%{mandir}/man1/xxh${bit}sum.1
+ done
+ end
+end
+
+packages
+ package %{name}
+
+ package %{name}-libs
+ template LIBS
+ end
+
+ package %{name}-devel
+ template DEVEL
+ end
+
+ package %{name}-debuginfo
+ template DEBUGINFO
+ end
+end