32de879756
Please accept these changes. OBS-URL: https://build.opensuse.org/request/show/397791 OBS-URL: https://build.opensuse.org/package/show/games/asteroid?expand=0&rev=3
29 lines
673 B
Bash
29 lines
673 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">
|
|
<param name="scm">git</param>
|
|
<param name="url">git://github.com/chazomaticus/asteroid.git</param>
|
|
<param name="version">${version}-${shortcommit}</param>
|
|
<param name="revision">${commit}</param>
|
|
<param name="package-meta">yes</param>
|
|
</service>
|
|
|
|
<service name="recompress">
|
|
<param name="compression">bz2</param>
|
|
<param name="file">*.tar</param>
|
|
</service>
|
|
|
|
<service name="download_files" />
|
|
|
|
</services>
|
|
EOF
|
|
echo done
|