mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2024-11-23 05:52:53 +01:00
19 lines
474 B
Bash
19 lines
474 B
Bash
#!/bin/bash
|
|
# Will generate a correctly formatted SRCINFO file
|
|
|
|
SCRIPT_DIST=".SRCINFO"
|
|
|
|
# generate SRCINFO
|
|
makepkg --printsrcinfo > $SCRIPT_DIST
|
|
|
|
# replace pkgbase with tidal-hifi-git
|
|
pkgName="tidal-hifi-git"
|
|
sed -i "1s/.*/pkgbase = $pkgName/" $SCRIPT_DIST
|
|
|
|
# replace pkgbase with tidal-hifi-git
|
|
sed -i '/^pkgname/ d' $SCRIPT_DIST
|
|
echo "pkgname = $pkgName" >> $SCRIPT_DIST
|
|
|
|
# remove double line breaks and replace with single line breaks
|
|
sed -i '/^$/N;/^\n$/D' $SCRIPT_DIST
|