1 include /usr
/share
/dpkg
/pkg-info.mk
2 include /usr
/share
/dpkg
/architecture.mk
4 PACKAGE
=libxdgmime-perl
6 DEB
= ${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}_
${DEB_BUILD_ARCH}.deb
7 DSC
= ${PACKAGE}_
${DEB_VERSION_UPSTREAM_REVISION}.dsc
8 BUILDSRC
=${PACKAGE}-${DEB_VERSION_UPSTREAM}
11 UPSTREAM
=xdgmime-source
/src
14 .PHONY
: update-bindings
16 cp
-a
${UPSTREAM}/xdgmime
*.
[ch
] ${OPKGNAME}/
17 h2xs
-P
-v
${DEB_VERSION_UPSTREAM} -F
-DHAVE_MMAP
-M
'^XDG_' -t PV
-Ofan Xdgmime xdgmime.h
18 rm -f
${OPKGNAME}/xdgmime
*.
[ch
]
19 echo
"Please manually check and add the diff of the automatically generated update"
24 cp
-a
${OPKGNAME} ${BUILDSRC}
25 cp
-a
${UPSTREAM}/xdgmime
*.
[ch
] ${BUILDSRC}/
26 perl
-MDevel
::PPPort
-e
'Devel::PPPort::WriteFile("${BUILDSRC}/ppport.h");'
27 cp
-a debian
${BUILDSRC}
32 cd
${BUILDSRC}; dpkg-buildpackage
-S
-us
-uc
-d
-nc
41 ${DEB}: ${OPKGNAME}/Xdgmime.xs
${BUILDSRC}
42 cd
${BUILDSRC}; dpkg-buildpackage
-b
-us
-uc
47 tar cf
- ${DEB} | ssh
-X repoman@repo.proxmox.com
-- upload
--product pmg
--dist stretch
50 CLEANFILES
= *~ debian
/*~
*.deb
${BUILDSRC} libxdgmime-perl
* *.buildinfo
*.build
*.dsc
*tar.?z