Commit 95e2b4e1 authored by Andrii Verbytskyi's avatar Andrii Verbytskyi

Some fixes

parent 20643c72
This diff is collapsed.
#!/bin/bash
set -e
[ $# == 3 ]
url="http://lcgapp.cern.ch/project/simu/HepMC/download"
url="http://hepmc.web.cern.ch/hepmc/releases"
ver="$2"
pkgdir="hepmc3-$ver.orig"
pkg="hepmc3_$ver.orig.tar.gz"
uppkgdir="HepMC3-$ver"
uppkg="HepMC3-$ver.tar.gz"
[ ! -f "../$uppkg" ] && wget "$url/$uppkg" -O "../$uppkg"
[ -d "$uppkgdir" ] && rm -rf "$uppkgdir"
tar xf "../$uppkg"
[ -d "$pkgdir" ] && rm -rf "$pkgdir"
mv "$uppkgdir" "$pkgdir"
rm -f "../$pkg"
tar -zcf "../$pkg" "$pkgdir"
rm -rf "$pkgdir"
#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS = hardenning=+all
export DEB_LDFLGAS_MAINT_APPEND = -Wl,--as-needed
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
PKGNAME=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f1))
#DH_VERBOSE = 1
# exclude VCS paths if needed.
DEBVER=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f2 | tr -d '()'))
#DH_ALWAYS_EXCLUDE=CVS:.svn:.git
UPVER=$(shell echo $(DEBVER) | sed -e 's/-[^-]*$$//' -e 's/^[^:]*://')
# see FEATURE AREAS in dpkg-buildflags(1))
../$(PKGNAME)_$(UPVER).orig.tar.gz:
./debian/get-orig-source --upstream-version $(UPVER) $@
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1))
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
get-orig-source: ../$(PKGNAME)_$(UPVER).orig.tar.gz
%:
dh $@
# debmake generated override targets
# For example, set multiarch library install file path.
# See dpkg-architecture(1)
#DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
#We don't have root6 on Debian
override_dh_auto_configure:
cmake -DHEPMC3_ENABLE_ROOTIO=OFF -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
override_dh_auto_install:
dh_auto_install
mkdir -p debian/tmp/usr/doc/HepMC3
cp -r examples debian/tmp/usr/doc/HepMC3
cp -r interfaces debian/tmp/usr/doc/HepMC3
cp -r doc/doxygen/html debian/tmp/usr/doc/HepMC3
override_dh_usrlocal:
override_dh_auto_build-arch:
dh_auto_build --parallel
......@@ -33,9 +38,4 @@ override_dh_auto_build-arch:
override_dh_auto_install:
dh_auto_install
mkdir -p debian/tmp/usr/doc/HepMC3
cp -r examples debian/tmp/usr/doc/HepMC3
cp -r interfaces debian/tmp/usr/doc/HepMC3
cp -r doc/doxygen/html debian/tmp/usr/doc/HepMC3
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment