File: rules

package info (click to toggle)
ruby-ffi-libarchive 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 216 kB
  • sloc: ruby: 1,336; makefile: 9
file content (14 lines) | stat: -rwxr-xr-x 412 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/make -f

export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install

include /usr/share/dpkg/architecture.mk

%:
	dh $@ --buildsystem=ruby --with ruby

override_dh_gencontrol:
	libarchive=$$(dpkg -S $$(readlink -f /usr/lib/$(DEB_HOST_MULTIARCH)/libarchive.so) | cut -d : -f 1); \
		   echo "libarchive:Depends=$$libarchive" >> debian/ruby-ffi-libarchive.substvars
	dh_gencontrol