Palladium-catalyzed coupling of 5-bromopyrimidine (I) with ethyl acrylate (II) afforded pyrimidinyl acrylate (III), which was hydrogenated over Pd/C to give (IV). Claisen condensation of (IV) with ethyl formate furnished oxoester (V). This was then cyclized with thiourea (VI) to produce the intermediate thiouracil (VII).
Friedel-Crafts acylation of chlorobenzene (VIII) with 8-bromooctanoyl chloride (IX) in the presence of AlCl3 gave rise to bromo ketone (X). Finally, alkylation of thiouracil (VII) with bromoketone (X) generated the title compound.