If you are aiming to build this with an AOSP-based ROM (such as AOSP, CyanogenMod, AOKP, PA, Slim, etc) then there are a few steps you need to take to ensure this happens correctly.
To include this in your AOSP based ROM, you need to add it to your room_service.xml
<project path="packages/apps/OTAUpdates" name="MatthewBooth/OTAUpdates" revision="aosp" />
Depending on your source tree, you will need to include the following in one of the config.mk files (usually in the vendor folder or device folder:
PRODUCT_PACKAGES += /
OTAUpdates
If you're building from source, you probably already know how to do this.