]> git.proxmox.com Git - arch-pacman.git/blame - Makefile
update pacman version to 6.0.1
[arch-pacman.git] / Makefile
CommitLineData
a009ec9d 1PACKAGE=arch-pacman
62f676de 2PACMANVER=6.0.1
a009ec9d
WB
3DEBREL=1
4
5SRCDIR=pacman
6SRCTAR=${SRCDIR}.tgz
7
8ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
9GITVERSION:=$(shell cat .git/refs/heads/master)
10
11DEB=${PACKAGE}_${PACMANVER}-${DEBREL}_amd64.deb
12DEB2=${PACKAGE}-dev_${PACMANVER}-${DEBREL}_amd64.deb \
c1bda765 13 ${PACKAGE}-dbgsym_${PACMANVER}-${DEBREL}_amd64.deb
a009ec9d
WB
14
15DEBS= ${DEB} ${DEB2}
16
17all: ${DEBS}
18 echo ${DEBS}
19
8acc3021
TL
20${SRCDIR}: ${SRCTAR}
21 rm -rf ${SRCDIR}.tmp
22 mkdir ${SRCDIR}.tmp
23 tar xf ${SRCTAR} -C ${SRCDIR}.tmp --strip-components 1
24 cp -a debian ${SRCDIR}.tmp/debian
25 mv ${SRCDIR}.tmp ${SRCDIR}
26
27.PHONY: builddir
28builddir:
a009ec9d 29 rm -rf ${SRCDIR}
8acc3021
TL
30 $(MAKE) ${SRCDIR}
31
32${DEB}: builddir
a6b71b8a 33 echo "git clone https://gitlab.archlinux.org/pacman/pacman.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
a009ec9d
WB
34 cd ${SRCDIR}; DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -b -us -uc
35 lintian ${DEBS}
36
37.PHONY: deb
38deb ${DEB2}: ${DEB}
39
40.PHONY: download
b8869739
WB
41download: ${SRCTAR}
42${SRCTAR}:
a009ec9d 43 rm -rf ${SRCDIR} ${SRCTAR} pacman-git
a6b71b8a 44 git clone --depth=1 --branch=v${PACMANVER} https://gitlab.archlinux.org/pacman/pacman.git pacman-git
a009ec9d
WB
45 (cd pacman-git && git archive --prefix=${SRCDIR}/ --format=tar v${PACMANVER}) | gzip > ${SRCTAR}.tmp
46 mv ${SRCTAR}.tmp ${SRCTAR}
47 rm -rf pacman-git
48
a009ec9d 49distclean: clean
fce6243f 50 rm -rf ${SRCDIR} ${SRCTAR} pacman-git
a009ec9d
WB
51
52.PHONY: clean
53clean:
7ba3a0a2 54 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo
a009ec9d
WB
55 find . -name '*~' -exec rm {} ';'
56
57.PHONY: dinstall
58dinstall: ${DEBS}
59 dpkg -i ${DEBS}