8 ARCH
:=$(shell dpkg-architecture
-qDEB_BUILD_ARCH
)
9 GITVERSION
:=$(shell cat .git
/refs
/heads
/master
)
11 DEB
=${PACKAGE}_
${PACMANVER}-${DEBREL}_amd64.deb
12 DEB2
=${PACKAGE}-dev_
${PACMANVER}-${DEBREL}_amd64.deb \
13 ${PACKAGE}-dbgsym_
${PACMANVER}-${DEBREL}_amd64.deb
23 tar xf
${SRCTAR} -C
${SRCDIR}.tmp
--strip-components
1
24 cp
-a debian
${SRCDIR}.tmp
/debian
25 mv
${SRCDIR}.tmp
${SRCDIR}
33 echo
"git clone https://gitlab.archlinux.org/pacman/pacman.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian
/SOURCE
34 cd
${SRCDIR}; DEB_BUILD_OPTIONS
=nocheck dpkg-buildpackage
-rfakeroot
-b
-us
-uc
43 rm -rf
${SRCDIR} ${SRCTAR} pacman-git
44 git clone
--depth
=1 --branch
=v
${PACMANVER} https
://gitlab.archlinux.org
/pacman
/pacman.git pacman-git
45 (cd pacman-git
&& git archive
--prefix=${SRCDIR}/ --format
=tar v
${PACMANVER}) | gzip
> ${SRCTAR}.tmp
46 mv
${SRCTAR}.tmp
${SRCTAR}
50 rm -rf
${SRCDIR} ${SRCTAR} pacman-git
54 rm -rf
${SRCDIR} ${SRCDIR}.tmp
*_
${ARCH}.deb
*.changes
*.dsc
*.buildinfo
55 find .
-name
'*~' -exec
rm {} ';'