APKBUILD examples:Git checkout: Difference between revisions

From Alpine Linux
(minor updates)
(Update example)
(One intermediate revision by one other user not shown)
Line 1: Line 1:


<pre>
<pre>
source="http://dev.alpinelinux.org/archive/configshell/$_realname-$_ver.tar.gz"
source="http://dev.alpinelinux.org/archive/configshell/$_pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$_pkgname-fb-v$_pkgver"


_giturl="https://github.com/agrover/configshell-fb"
_giturl="https://github.com/agrover/configshell-fb"
_gittag=v$_ver
_gittag="v$_pkgver"


_builddir="$srcdir"/$_realname-fb-v$_ver


snapshot() {
snapshot() {
mkdir -p "$srcdir"
mkdir -p "$srcdir"
cd "${SRCDEST:-$srcdir}"
cd "${SRCDEST:-$srcdir}"
if ! [ -d $_realname-fb.git ]; then
if ! [ -d $_pkgname-fb.git ]; then
git clone --bare  $_giturl || return 1
git clone --bare  $_giturl || return 1
cd $_realname-fb.git
cd $_pkgname-fb.git
else
else
cd $_realname-fb.git
cd $_pkgname-fb.git
git fetch || return 1
git fetch || return 1
fi
fi
git archive --prefix=$_realname/ -o "$SRCDEST"/$_realname-$_ver.tar.gz $_gittag
git archive --prefix=$_pkgname/ -o "$SRCDEST"/$_pkgname-$_pkgver.tar.gz $_gittag
scp "$SRCDEST"/$_realname-$_ver.tar.gz dev.alpinelinux.org:/archive/$_realname/
scp "$SRCDEST"/$_pkgname-$_pkgver.tar.gz dev.alpinelinux.org:/archive/$_pkgname/
}
}
</pre>
</pre>


[[Category:Development]]
[[Category:Development]]
== private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm ==
Offers private label cosmetics with custom design. We produce lip balms, serum, creams and more. Easy to buy with eshop. Private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
== private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm ==
Offers private label cosmetics with custom design. We produce lip balms, serum, creams and more. Easy to buy with eshop. Private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
== private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm ==
Offers private label cosmetics with custom design. We produce lip balms, serum, creams and more. Easy to buy with eshop. Private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
== private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm ==
Offers private label cosmetics with custom design. We produce lip balms, serum, creams and more. Easy to buy with eshop. Private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
== private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm ==
Offers private label cosmetics with custom design. We produce lip balms, serum, creams and more. Easy to buy with eshop. Private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]
[[http://ultra-high-end.com/custom-made.html private label cosmetics, custom made cosmetic, custom made cream, custom lip stick lip balm]]

Revision as of 18:18, 31 August 2016

source="http://dev.alpinelinux.org/archive/configshell/$_pkgname-$_pkgver.tar.gz"
builddir="$srcdir/$_pkgname-fb-v$_pkgver"

_giturl="https://github.com/agrover/configshell-fb"
_gittag="v$_pkgver"


snapshot() {
	mkdir -p "$srcdir"
	cd "${SRCDEST:-$srcdir}"
	if ! [ -d $_pkgname-fb.git ]; then
		git clone --bare  $_giturl || return 1
		cd $_pkgname-fb.git
	else
		cd $_pkgname-fb.git
		git fetch || return 1
	fi
	
	git archive --prefix=$_pkgname/ -o "$SRCDEST"/$_pkgname-$_pkgver.tar.gz $_gittag
	scp "$SRCDEST"/$_pkgname-$_pkgver.tar.gz dev.alpinelinux.org:/archive/$_pkgname/
}