Add system-wide configuration file support

This commit is contained in:
unstable-code 2025-11-23 19:46:30 +09:00
parent 34212dbc17
commit df6230d2e5
No known key found for this signature in database
GPG key ID: CB5F744B42F45F64

View file

@ -27,6 +27,7 @@ makedepends=(
)
provides=('wshowlyrics')
conflicts=('wshowlyrics')
backup=('etc/wshowlyrics/settings.ini')
source=("git+https://github.com/unstable-code/lyrics.git")
sha256sums=('SKIP')
@ -53,6 +54,9 @@ package() {
# Install binary
install -Dm755 build/lyrics "$pkgdir/usr/bin/wshowlyrics"
# Install system-wide configuration file
install -Dm644 settings.ini.example "$pkgdir/etc/wshowlyrics/settings.ini"
# Install documentation
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 README.ko.md "$pkgdir/usr/share/doc/$pkgname/README.ko.md"