--- ttaenc-3.4.1.orig/Makefile +++ ttaenc-3.4.1/Makefile @@ -5,7 +5,8 @@ CFLAGS = -Wall -O3 -fomit-frame-pointer -funroll-loops \ -fforce-addr -falign-functions=4 -msse TTAENC = ttaenc -INSDIR = /usr/bin +DESTDIR = +INSDIR = $(DESTDIR)/usr/bin ttaenc: $(patsubst %.c, %.o, $(wildcard *.c)) gcc $^ -o $@ $(CFLAGS) @@ -14,7 +15,7 @@ gcc -c $(CFLAGS) $< install: - [ -d "$(INSDIR)" ] || mkdir $(INSDIR) + install -d $(INSDIR) if [ -n "$(TTAENC)" ]; then \ strip $(TTAENC) ; \ install -m 755 $(TTAENC) $(INSDIR) ; \ --- ttaenc-3.4.1.orig/debian/changelog +++ ttaenc-3.4.1/debian/changelog @@ -0,0 +1,4 @@ +ttaenc (3.4.1-2jammy) jammy; urgency=low + * New program release + + -- Alexander Sokolov Sat, 22 Oct 2022 13:54:48 +0000 --- ttaenc-3.4.1.orig/debian/compat +++ ttaenc-3.4.1/debian/compat @@ -0,0 +1 @@ +7 --- ttaenc-3.4.1.orig/debian/control +++ ttaenc-3.4.1/debian/control @@ -0,0 +1,15 @@ +Source: ttaenc +Section: sound +Priority: extra +Maintainer: Alexander Sokolov +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.4 +Homepage: http://tta.sourceforge.net + +Package: ttaenc +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Recommends: +Description: TrueAudio (TTA) Codec - command line tool + TrueAudio lossless compressor for multichannel 8,16 and 24 bits audio data. + --- ttaenc-3.4.1.orig/debian/copyright +++ ttaenc-3.4.1/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Alexander Sokolov + +It was downloaded from http://sourceforge.net/projects/tta/files/ + +Contributors: + + Aleksander Djuric + Pavel Zhilin + Tamir Barak + Noam Koenigstein + Kazuki Oikawa + http://tta.sourceforge.net + +License: GPL-2+ + On Debian systems the full text of the GNU Library General Public License can + be found in the '/usr/share/common-licenses/GPL-2' files. + +The Debian packaging is: + + Copyright (C) 2010-2017 Alexander Sokolov + +and is licensed under the GPL version 2, +see `/usr/share/common-licenses/GPL-2'. + --- ttaenc-3.4.1.orig/debian/patches/01_DESTDIR_in_Makefile.diff +++ ttaenc-3.4.1/debian/patches/01_DESTDIR_in_Makefile.diff @@ -0,0 +1,23 @@ +Index: ttaenc-3.4.1/Makefile +=================================================================== +--- ttaenc-3.4.1.orig/Makefile ++++ ttaenc-3.4.1/Makefile +@@ -5,7 +5,8 @@ + CFLAGS = -Wall -O3 -fomit-frame-pointer -funroll-loops \ + -fforce-addr -falign-functions=4 -msse + TTAENC = ttaenc +-INSDIR = /usr/bin ++DESTDIR = ++INSDIR = $(DESTDIR)/usr/bin + + ttaenc: $(patsubst %.c, %.o, $(wildcard *.c)) + gcc $^ -o $@ $(CFLAGS) +@@ -14,7 +15,7 @@ ttaenc: $(patsubst %.c, %.o, $(wildcard + gcc -c $(CFLAGS) $< + + install: +- [ -d "$(INSDIR)" ] || mkdir $(INSDIR) ++ install -d $(INSDIR) + if [ -n "$(TTAENC)" ]; then \ + strip $(TTAENC) ; \ + install -m 755 $(TTAENC) $(INSDIR) ; \ --- ttaenc-3.4.1.orig/debian/patches/series +++ ttaenc-3.4.1/debian/patches/series @@ -0,0 +1 @@ +01_DESTDIR_in_Makefile.diff --- ttaenc-3.4.1.orig/debian/rules +++ ttaenc-3.4.1/debian/rules @@ -0,0 +1,13 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +%: + dh $@