]>
Commit | Line | Data |
---|---|---|
5fb3d080 TL |
1 | include /usr/share/dpkg/pkg-info.mk |
2 | include /usr/share/dpkg/architecture.mk | |
3 | ||
b6f9e342 | 4 | PACKAGE=libxdgmime |
5fb3d080 TL |
5 | |
6 | DEB = libxdgmime-perl_${DEB_VERSION_UPSTREAM_REVISION}_${DEB_BUILD_ARCH}.deb | |
b6f9e342 | 7 | BUILDSRC=${PACKAGE}-${DEB_VERSION_UPSTREAM} |
5fb3d080 | 8 | |
a1d229d1 | 9 | OPKGNAME=Xdgmime |
fda2f5ea | 10 | UPSTREAM=xdgmime-source/src |
a1d229d1 | 11 | |
b6f9e342 | 12 | all: ${DEB} |
f05aec34 SI |
13 | .PHONY: update-bindings |
14 | update-bindings: | |
15 | cp -a ${UPSTREAM}/xdgmime*.[ch] ${OPKGNAME}/ | |
16 | h2xs -P -v ${DEB_VERSION_UPSTREAM} -F -DHAVE_MMAP -M '^XDG_' -t PV -Ofan Xdgmime xdgmime.h | |
17 | rm -f ${OPKGNAME}/xdgmime*.[ch] | |
18 | echo "Please manually check and add the diff of the automatically generated update" | |
b6f9e342 SI |
19 | |
20 | .PHONY: ${BUILDSRC} | |
21 | ${BUILDSRC}: | |
22 | -rm -rf ${BUILDSRC} | |
23 | cp -a ${OPKGNAME} ${BUILDSRC} | |
24 | cp -a ${UPSTREAM}/xdgmime*.[ch] ${BUILDSRC}/ | |
25 | perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");' | |
26 | cp -a debian ${BUILDSRC} | |
27 | ||
28 | .PHONY: deb | |
29 | deb: ${DEB} | |
30 | ${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC} | |
31 | cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc | |
a1d229d1 DM |
32 | lintian ${DEB} |
33 | ||
90b3593d | 34 | .PHONY: upload |
a1d229d1 | 35 | upload: ${DEB} |
90b3593d | 36 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch |
a1d229d1 DM |
37 | |
38 | ||
b6f9e342 | 39 | CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl_* |
a1d229d1 | 40 | |
90b3593d | 41 | .PHONY: clean |
a1d229d1 DM |
42 | clean: |
43 | rm -rf ${CLEANFILES} | |
90b3593d DM |
44 | |
45 | .PHONY: dinstall | |
46 | dinstall: ${DEB} | |
47 | dpkg -i ${DEB} |