diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fripost-partman-udeb/Makefile | 7 | ||||
-rwxr-xr-x | src/getname.sh | 3 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/fripost-partman-udeb/Makefile b/src/fripost-partman-udeb/Makefile index a1e0e73..1b96c14 100644 --- a/src/fripost-partman-udeb/Makefile +++ b/src/fripost-partman-udeb/Makefile @@ -1,13 +1,6 @@ CC ?= gcc CFLAGS ?= -Wall -x c -s -ifeq (${ARCH}, amd64) -CFLAGS += -m64 -endif -ifeq (${ARCH}, i386) -CFLAGS += -m32 -endif - LIBS = lib/stdbuf.so all: ${LIBS} diff --git a/src/getname.sh b/src/getname.sh index f9ed5ec..3bd5bf6 100755 --- a/src/getname.sh +++ b/src/getname.sh @@ -21,7 +21,8 @@ else if [ -r "$dir/debian/files" ]; then echo src/$(cut -d' ' -f1 "$dir/debian/files") else - sed -nr 's@^(\S+) \(([0-9.]+)\).*@src/\1_\2_all.udeb@p' "$dir/debian/changelog" + deb_arch=$(dpkg-architecture -qDEB_HOST_ARCH ${ARCH:+-a$ARCH}) + sed -nr "s@^(\S+) \(([0-9.]+)\).*@src/\1_\2_${deb_arch}.udeb@p" "$dir/debian/changelog" fi done fi |