]> git.proxmox.com Git - arch-pacman.git/blame - Makefile
remove explicit library deps
[arch-pacman.git] / Makefile
CommitLineData
a009ec9d 1PACKAGE=arch-pacman
1da8cce1 2PACMANVER=5.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 \
13 ${PACKAGE}-dbg_${PACMANVER}-${DEBREL}_amd64.deb
14
15DEBS= ${DEB} ${DEB2}
16
17all: ${DEBS}
18 echo ${DEBS}
19
20${DEB}: ${SRCTAR}
21 rm -rf ${SRCDIR}
22 tar xf ${SRCTAR}
23 cp -a debian ${SRCDIR}/debian
1e5ba461 24 echo "git clone git://projects.archlinux.org/pacman.git\\ngit checkout ${GITVERSION}" > ${SRCDIR}/debian/SOURCE
a009ec9d
WB
25 cd ${SRCDIR}; DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -rfakeroot -b -us -uc
26 lintian ${DEBS}
27
28.PHONY: deb
29deb ${DEB2}: ${DEB}
30
31.PHONY: download
32download ${SRCTAR}:
33 rm -rf ${SRCDIR} ${SRCTAR} pacman-git
34 git clone --depth=1 --branch=v${PACMANVER} git://projects.archlinux.org/pacman.git pacman-git
35 (cd pacman-git && git archive --prefix=${SRCDIR}/ --format=tar v${PACMANVER}) | gzip > ${SRCTAR}.tmp
36 mv ${SRCTAR}.tmp ${SRCTAR}
37 rm -rf pacman-git
38
a009ec9d
WB
39distclean: clean
40
41.PHONY: clean
42clean:
7ba3a0a2 43 rm -rf ${SRCDIR} ${SRCDIR}.tmp *_${ARCH}.deb *.changes *.dsc *.buildinfo
a009ec9d
WB
44 find . -name '*~' -exec rm {} ';'
45
46.PHONY: dinstall
47dinstall: ${DEBS}
48 dpkg -i ${DEBS}