]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add config to build
authorBastian Dehn <hhaalo@arcor.de>
Sat, 26 Sep 2026 10:22:12 +0000 (12:22 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 26 Sep 2026 10:22:12 +0000 (12:22 +0200)
Makefile
src/albentohandy.conf [new file with mode: 0644]

index 8595b63c5bbd164578ff4c94a6e1f04a5082d37a..663672e6a2eba4fd6cb7e0cd51e51e8c425920f0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,12 @@
+NAME=albentohandy
 VERSION=1.0.0
 REVISION=1
 BUILDDIR=build
 SRCDIR=src
 BINDIR=usr/bin
-LIBDIR=usr/lib/albentohandy
-PACKAGE=albentohandy_$(VERSION)-$(REVISION)_x86_64
+LIBDIR=usr/lib/$(NAME)
+SHAREDIR=usr/share/doc/$(NAME)
+PACKAGE=$(NAME)_$(VERSION)-$(REVISION)_x86_64
 
 .PHONY: all build test clean
 
@@ -14,7 +16,8 @@ build: $(BUILDDIR)/$(PACKAGE)/$(BINDIR)/albentohandy \
        $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/vorbis.sh \
        $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/mp3.sh \
        $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/opus.sh \
-       $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/flac.sh
+       $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/flac.sh \
+       $(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/albentohandy.conf
 
 test:
        ./tests/albentohandy.bats
@@ -49,4 +52,8 @@ $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/opus.sh:
 $(BUILDDIR)/$(PACKAGE)/$(LIBDIR)/flac.sh:
        mkdir --parents $(@D)
        cp $(SRCDIR)/lib/flac.sh $(@)
-       shellcheck $(@)
\ No newline at end of file
+       shellcheck $(@)
+
+$(BUILDDIR)/$(PACKAGE)/$(SHAREDIR)/albentohandy.conf:
+       mkdir --parents $(@D)
+       cp $(SRCDIR)/albentohandy.conf $(@)
\ No newline at end of file
diff --git a/src/albentohandy.conf b/src/albentohandy.conf
new file mode 100644 (file)
index 0000000..edfc8e4
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+MUSIC_PATH="$HOME/Music"
+# BITRATE="192"
+# QUALITY="6"
+# OUTPUT_PATH=
+# LIB_PATH=
\ No newline at end of file