]>
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 SI |
12 | all: ${DEB} |
13 | ||
14 | .PHONY: ${BUILDSRC} | |
15 | ${BUILDSRC}: | |
16 | -rm -rf ${BUILDSRC} | |
17 | cp -a ${OPKGNAME} ${BUILDSRC} | |
18 | cp -a ${UPSTREAM}/xdgmime*.[ch] ${BUILDSRC}/ | |
19 | perl -MDevel::PPPort -e 'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");' | |
20 | cp -a debian ${BUILDSRC} | |
21 | ||
22 | .PHONY: deb | |
23 | deb: ${DEB} | |
24 | ${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC} | |
25 | cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc | |
a1d229d1 DM |
26 | lintian ${DEB} |
27 | ||
90b3593d | 28 | .PHONY: upload |
a1d229d1 | 29 | upload: ${DEB} |
90b3593d | 30 | tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch |
a1d229d1 DM |
31 | |
32 | ||
b6f9e342 | 33 | CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl_* |
a1d229d1 | 34 | |
90b3593d | 35 | .PHONY: clean |
a1d229d1 DM |
36 | clean: |
37 | rm -rf ${CLEANFILES} | |
90b3593d DM |
38 | |
39 | .PHONY: dinstall | |
40 | dinstall: ${DEB} | |
41 | dpkg -i ${DEB} |