mirror of
https://git.proxmox.com/git/pathpatterns
synced 2025-07-25 11:04:57 +00:00
build in subdir, add d/control, add upload target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
6a0e9c884a
commit
da8de18073
25
Makefile
25
Makefile
@ -7,22 +7,37 @@ check:
|
||||
|
||||
.PHONY: dinstall
|
||||
dinstall: deb
|
||||
sudo -k dpkg -i build/librust-*.deb
|
||||
|
||||
.PHONY: deb
|
||||
deb:
|
||||
.PHONY: build
|
||||
build:
|
||||
rm -rf build
|
||||
mkdir build
|
||||
debcargo package \
|
||||
--config "$(PWD)/debian/debcargo.toml" \
|
||||
--changelog-ready \
|
||||
--no-overlay-write-back \
|
||||
--directory "$(PWD)/build" \
|
||||
--directory "$(PWD)/build/pathpatterns" \
|
||||
"pathpatterns" \
|
||||
"$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')"
|
||||
echo system >build/rust-toolchain
|
||||
(cd build && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us)
|
||||
lintian *.deb
|
||||
rm -f build/pathpatterns/Cargo.lock
|
||||
find build/pathpatterns/debian -name '*.hint' -delete
|
||||
cp build/pathpatterns/debian/control debian/control
|
||||
|
||||
.PHONY: deb
|
||||
deb: build
|
||||
(cd build/pathpatterns && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us)
|
||||
lintian build/*.deb
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf build *.deb *.buildinfo *.changes *.orig.tar.gz
|
||||
cargo clean
|
||||
|
||||
upload: deb
|
||||
cd build; \
|
||||
dcmd --deb rust-pathpatterns_*.changes \
|
||||
| grep -v '.changes$$' \
|
||||
| tar -cf- -T- \
|
||||
| ssh -X repoman@repo.proxmox.com upload --product devel --dist buster
|
||||
|
33
debian/control
vendored
Normal file
33
debian/control
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
Source: rust-pathpatterns
|
||||
Section: rust
|
||||
Priority: optional
|
||||
Build-Depends: debhelper (>= 11),
|
||||
dh-cargo (>= 18),
|
||||
cargo:native <!nocheck>,
|
||||
rustc:native <!nocheck>,
|
||||
libstd-rust-dev <!nocheck>,
|
||||
librust-bitflags-1+default-dev (>= 1.2-~~) <!nocheck>,
|
||||
librust-libc-0.2+default-dev <!nocheck>
|
||||
Maintainer: Proxmox Support Team <support@proxmox.com>
|
||||
Standards-Version: 4.4.1
|
||||
Vcs-Git:
|
||||
Vcs-Browser:
|
||||
|
||||
Package: librust-pathpatterns-dev
|
||||
Architecture: any
|
||||
Multi-Arch: same
|
||||
Depends:
|
||||
${misc:Depends},
|
||||
librust-bitflags-1+default-dev (>= 1.2-~~),
|
||||
librust-libc-0.2+default-dev
|
||||
Provides:
|
||||
librust-pathpatterns+default-dev (= ${binary:Version}),
|
||||
librust-pathpatterns-0-dev (= ${binary:Version}),
|
||||
librust-pathpatterns-0+default-dev (= ${binary:Version}),
|
||||
librust-pathpatterns-0.1-dev (= ${binary:Version}),
|
||||
librust-pathpatterns-0.1+default-dev (= ${binary:Version}),
|
||||
librust-pathpatterns-0.1.2-dev (= ${binary:Version}),
|
||||
librust-pathpatterns-0.1.2+default-dev (= ${binary:Version})
|
||||
Description: Include/exclude path list implementation with git-like globbing support - Rust source code
|
||||
This package contains the source for the Rust pathpatterns crate, packaged by
|
||||
debcargo for use with cargo and dh-cargo.
|
Loading…
Reference in New Issue
Block a user