diff --git a/app-misc/battery_status_led/battery_status_led-0.1.ebuild b/app-misc/battery_status_led/battery_status_led-0.1.ebuild index 63f7dae..ef95a88 100644 --- a/app-misc/battery_status_led/battery_status_led-0.1.ebuild +++ b/app-misc/battery_status_led/battery_status_led-0.1.ebuild @@ -32,7 +32,7 @@ DOCS="README.md" src_install() { dodoc ${DOCS} - dobin battery_status_led.sh + dobin battery_status_led systemd_dounit battery_status_led.service } diff --git a/battery_status_led.sh b/battery_status_led similarity index 100% rename from battery_status_led.sh rename to battery_status_led diff --git a/debian/package-deb.sh b/debian/package-deb.sh index 16efb44..a7d1d65 100755 --- a/debian/package-deb.sh +++ b/debian/package-deb.sh @@ -38,7 +38,7 @@ mkdir -p build/batterystatusled_${VERSION}/lib/systemd/system cp ../battery_status_led.service build/batterystatusled_${VERSION}/lib/systemd/system mkdir -p build/batterystatusled_${VERSION}/usr/bin -cp ../battery_status_led.sh build/batterystatusled_${VERSION}/usr/bin +cp ../battery_status_led build/batterystatusled_${VERSION}/usr/bin mkdir -p build/batterystatusled_${VERSION}/usr/share/doc/ cp ../README.md build/batterystatusled_${VERSION}/usr/share/doc/ diff --git a/redhat/package-rpm b/redhat/package-rpm index 7a2450a..8b06cc1 100755 --- a/redhat/package-rpm +++ b/redhat/package-rpm @@ -32,7 +32,7 @@ License: GPLv3 BuildArch: noarch Source0: battery_status_led.service -Source1: battery_status_led.sh +Source1: battery_status_led Source2: README.md @@ -54,18 +54,18 @@ install -p -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.md %files %defattr(-,root,root,-) %{_unitdir}/battery_status_led.service -%{_bindir}/battery_status_led.sh +%{_bindir}/battery_status_led %{_docdir}/%{name}/README.md # %changelog EOL cp ../battery_status_led.service build/ -cp ../battery_status_led.sh build/ +cp ../battery_status_led build/ cp ../README.md build/ cd build rpmbuild --define "_sourcedir $PWD" --define "_rpmdir $PWD" --define "_unitdir /lib/systemd/system" -bb battery_status_led.spec cd .. mv build/noarch/battery_status_led-${VERSION}.noarch.rpm . -rm -rf build \ No newline at end of file +rm -rf build