Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
cython
Commits
d0764845
Commit
d0764845
authored
May 28, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial build script based on official Debian package
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
build_cythonplus
build_cythonplus
+44
-0
No files found.
build_cythonplus
0 → 100755
View file @
d0764845
#!/usr/bin/make -f
REPOS = https://lab.nexedi.com/nexedi/cython.git
TAG = cythonplus-0.2
NAME = Xavier Thompson
EMAIL = xavier.thompson@nexedi.com
define SED_CTRL
s/^(Maintainer:).*/\1 $(NAME) <$(EMAIL)>/
/^Uploaders:/d
s,^(Homepage:).*,\1 https://cython.plus/,
s,^(Vcs-Git:).*,\1 $(REPOS),
/^Vcs-Browser:/d
endef
export SED_CTRL NAME EMAIL
DPKG_INFO = /var/lib/dpkg/info
BUILD_ESSENTIAL = $(DPKG_INFO)/build-essential.list
DEVSCRIPTS = $(DPKG_INFO)/devscripts.list
ifeq ($(shell id -u),0)
SUDO =
else
SUDO = sudo
endif
all: cython/debian $(BUILD_ESSENTIAL)
cd cython && \
$(SUDO) apt-get build-dep . && \
DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -b
$(DPKG_INFO)/%.list:
$(SUDO) apt-get install $(*F) --no-install-recommends
cython:
git clone -b $(TAG) $(REPOS)
cython/debian: cython $(DEVSCRIPTS)
[ ! -e debian ] || rm -r debian
wget -qO - https://salsa.debian.org/python-team/packages/cython/-/archive/debian/master/cython-debian-master.tar.gz?path=debian | tar -xz --strip-components=1
sed -ri "$$SED_CTRL" debian/control
dch --force-distribution -D nexedi -v `cd $< && git describe |sed s/-/+cp-/`-deb`cat /etc/debian_version` "New Cython+ release: $(TAG)"
mv debian $<
.PHONY: all
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment