Skip to content

Commit

Permalink
deb: try meson
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 30, 2023
1 parent f34ff08 commit 54c852a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Priority: optional
Maintainer: Stas Sergeev <[email protected]>
Standards-Version: 3.9.7
Build-Depends:
make,
pipx,
ninja-build,
bison,
flex,
sed,
Expand Down
14 changes: 7 additions & 7 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/make -f

%:
dh $@ --parallel --builddirectory=build
export PATH=$(shell echo $$PATH):$(shell realpath ~/.local/bin)

override_dh_auto_build:
dh_auto_build $@ -- PREFIX=/usr
%:
pipx install meson
./configure.meson build --prefix /usr --libdir /usr/lib
dh $@ --buildsystem=meson --builddirectory=build

override_dh_auto_install:
dh_auto_install $@ -- PREFIX=/usr \
PKGCONFIGDIR=/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig
override_dh_makeshlibs:
dh_makeshlibs -n
3 changes: 1 addition & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ VERSION = ke.get_variable('VERSION')
pkg = import('pkgconfig')
pkg.generate(LIBFDPP,
libraries: LIBLOADER,
version: VERSION,
install_dir: get_option('libdir') / 'pkgconfig')
version: VERSION)

install_subdir('include/fdpp',
install_dir: 'include')

0 comments on commit 54c852a

Please sign in to comment.