540ba6cba6
Please accept these changes. OBS-URL: https://build.opensuse.org/request/show/398794 OBS-URL: https://build.opensuse.org/package/show/games/asteroid?expand=0&rev=6
27 lines
688 B
Bash
27 lines
688 B
Bash
#!/bin/sh
|
|
|
|
commit=4efc7fc0a1246f023d6f96b94081678e302ab430
|
|
shortcommit=$(c=${commit}; echo ${c:0:7})
|
|
version=1.2.1+git
|
|
|
|
echo -n "Creating _service file ..."
|
|
cat << EOF > _service
|
|
<services>
|
|
|
|
<service name="tar_scm" mode="disabled">
|
|
<param name="url">git://github.com/chazomaticus/asteroid.git</param>
|
|
<param name="scm">git</param>
|
|
<param name="version">${version}-${shortcommit}</param>
|
|
<param name="changesgenerate">enable</param>
|
|
</service>
|
|
|
|
<service name="recompress" mode="disabled">
|
|
<param name="file">*.tar</param>
|
|
<param name="compression">bz2</param>
|
|
</service>
|
|
<service name="set_version" mode="disabled"/>
|
|
|
|
</services>
|
|
EOF
|
|
echo done
|