Re: Help With debian/rules File Without Build Tool

2021-08-30 Thread Hilmar Preuße

Am 30.08.2021 um 13:22 teilte debian-ment...@jugra.de mit:

Hi,


maybe you can try to copy with
cat <<'EOF' >>debian/$PACKAGENAME.install
program usr/bin
EOF


...and replace the

override_dh_auto_clean:
rm -f program

By a file debian/clean containing the names of the be deleted files.

H.
--
sigfault




OpenPGP_signature
Description: OpenPGP digital signature


Re: Help With debian/rules File Without Build Tool

2021-08-30 Thread debian-mentors
Hello,

maybe you can try to copy with 
cat <<'EOF' >>debian/$PACKAGENAME.install
program usr/bin
EOF

and then you don't need override_dh_auto_install.

Best Regards,
Juri Grabowski



Re: Help With debian/rules File Without Build Tool

2021-08-30 Thread wferi
Ryan McClue  writes:

> override_dh_auto_install:
> cp program /usr/local/bin

Unrelated to your actual question, but this won't work well.  You need
to install into debian/PACKAGENAME as if it was the filesystem root,
that is: cp program debian/PACKAGENAME/usr/bin (after ensuring the
directory exists, and using your actual PACKAGENAME).
-- 
Regards,
Feri



Re: Help With debian/rules File Without Build Tool

2021-08-30 Thread Andrey Rahmatullin
On Mon, Aug 30, 2021 at 10:20:48AM +, Ryan McClue wrote:
> Upon running dpkg-buildpackage, I get: dh: error: Unknown sequence
> application (choose from: binary binary-arch binary-indep build
> build-arch build-indep clean install install-arch install-indep)
How are you running it?

-- 
WBR, wRAR


signature.asc
Description: PGP signature


Help With debian/rules File Without Build Tool

2021-08-30 Thread Ryan McClue
I want to create a Debian package from a C program without the use of a build 
tool such as autotools or CMake. My debian/rules file:

#!/usr/bin/make -f

%:
dh $@

override_dh_auto_clean:
rm -f program

override_dh_auto_build:
gcc program.c -o program

override_dh_auto_install:
cp program /usr/local/bin

Upon running dpkg-buildpackage, I get: dh: error: Unknown sequence application 
(choose from: binary binary-arch binary-indep build build-arch build-indep 
clean install install-arch install-indep)