+# install and package vcgencmd to /hal with RPATH
+BUILDTYPE=Release
+BUILDSUBDIR=`echo $BUILDTYPE | tr '[A-Z]' '[a-z]'`;
+pushd build/armv7l-linux/$BUILDSUBDIR
+make install \
+ DESTDIR=%{_builddir}/%{name}-%{version}/build/armv7l-linux/install \
+ INSTALL_ROOT=%{_builddir}/%{name}-%{version}/build/armv7l-linux/install
+popd
+
+mkdir -p %{buildroot}/%{_hal_bindir}
+mkdir -p %{buildroot}/%{_hal_libdir}/vc
+mkdir -p %{buildroot}/%{_hal_licensedir}/vcgencmd
+cp build/armv7l-linux/install/opt/vc/bin/vcgencmd %{buildroot}/%{_hal_bindir}
+cp build/armv7l-linux/install/opt/vc/lib/libvchiq_arm.so %{buildroot}/%{_hal_libdir}/vc
+cp build/armv7l-linux/install/opt/vc/lib/libvcos.so %{buildroot}/%{_hal_libdir}/vc
+cp LICENSE %{buildroot}/%{_hal_licensedir}/vcgencmd
+