test: modernize testing APKBUILDs
parent
fd8d3738fe
commit
f5872a74e8
|
@ -12,28 +12,27 @@ makedepends=
|
||||||
install=
|
install=
|
||||||
subpackages=
|
subpackages=
|
||||||
source=""
|
source=""
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# append extra dependencies to -dev subpackage
|
# append extra dependencies to -dev subpackage
|
||||||
# remove if not used.
|
# remove if not used.
|
||||||
# depends_dev="somepackage-dev"
|
# depends_dev="somepackage-dev"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p "$_builddir"
|
mkdir -p "$builddir"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
cat > $pkgname << __EOF__
|
cat > $pkgname <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hello from $pkgname-$pkgver"
|
echo "hello from $pkgname-$pkgver"
|
||||||
__EOF__
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="" #generate with 'abuild checksum'
|
sha512sums="" #generate with 'abuild checksum'
|
||||||
|
|
|
@ -12,28 +12,27 @@ makedepends=
|
||||||
install=
|
install=
|
||||||
subpackages=
|
subpackages=
|
||||||
source=""
|
source=""
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# append extra dependencies to -dev subpackage
|
# append extra dependencies to -dev subpackage
|
||||||
# remove if not used.
|
# remove if not used.
|
||||||
# depends_dev="somepackage-dev"
|
# depends_dev="somepackage-dev"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p "$_builddir"
|
mkdir -p "$builddir"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
cat > $pkgname << __EOF__
|
cat > $pkgname <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hello from $pkgname-$pkgver"
|
echo "hello from $pkgname-$pkgver"
|
||||||
__EOF__
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="" #generate with 'abuild checksum'
|
sha512sums="" #generate with 'abuild checksum'
|
||||||
|
|
|
@ -12,28 +12,27 @@ makedepends=
|
||||||
install="test-c.pre-install"
|
install="test-c.pre-install"
|
||||||
subpackages=
|
subpackages=
|
||||||
source=""
|
source=""
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# append extra dependencies to -dev subpackage
|
# append extra dependencies to -dev subpackage
|
||||||
# remove if not used.
|
# remove if not used.
|
||||||
# depends_dev="somepackage-dev"
|
# depends_dev="somepackage-dev"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p "$_builddir"
|
mkdir -p "$builddir"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
cat > $pkgname << __EOF__
|
cat > $pkgname <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hello from $pkgname-$pkgver"
|
echo "hello from $pkgname-$pkgver"
|
||||||
__EOF__
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="" #generate with 'abuild checksum'
|
sha512sums="" #generate with 'abuild checksum'
|
||||||
|
|
|
@ -12,28 +12,27 @@ makedepends=
|
||||||
install="$pkgname.post-install"
|
install="$pkgname.post-install"
|
||||||
subpackages=
|
subpackages=
|
||||||
source=""
|
source=""
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# append extra dependencies to -dev subpackage
|
# append extra dependencies to -dev subpackage
|
||||||
# remove if not used.
|
# remove if not used.
|
||||||
# depends_dev="somepackage-dev"
|
# depends_dev="somepackage-dev"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p "$_builddir"
|
mkdir -p "$builddir"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
cat > $pkgname << __EOF__
|
cat > $pkgname <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hello from $pkgname-$pkgver"
|
echo "hello from $pkgname-$pkgver"
|
||||||
__EOF__
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="" #generate with 'abuild checksum'
|
sha512sums="" #generate with 'abuild checksum'
|
||||||
|
|
|
@ -12,23 +12,23 @@ makedepends=
|
||||||
install=
|
install=
|
||||||
subpackages=
|
subpackages=
|
||||||
source=""
|
source=""
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p "$_builddir"
|
mkdir -p "$builddir"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
cat > $pkgname << __EOF__
|
cat > $pkgname <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hello from $pkgname-$pkgver"
|
echo "hello from $pkgname-$pkgver"
|
||||||
__EOF__
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="" #generate with 'abuild checksum'
|
sha512sums="" #generate with 'abuild checksum'
|
||||||
|
|
|
@ -12,28 +12,27 @@ makedepends=
|
||||||
install=
|
install=
|
||||||
subpackages=
|
subpackages=
|
||||||
source=""
|
source=""
|
||||||
|
builddir="$srcdir/$pkgname-$pkgver"
|
||||||
|
|
||||||
# append extra dependencies to -dev subpackage
|
# append extra dependencies to -dev subpackage
|
||||||
# remove if not used.
|
# remove if not used.
|
||||||
# depends_dev="somepackage-dev"
|
# depends_dev="somepackage-dev"
|
||||||
|
|
||||||
_builddir="$srcdir"/$pkgname-$pkgver
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
mkdir -p "$_builddir"
|
mkdir -p "$builddir"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
cat > $pkgname << __EOF__
|
cat > $pkgname <<-EOF
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo "hello from $pkgname-$pkgver"
|
echo "hello from $pkgname-$pkgver"
|
||||||
__EOF__
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$_builddir"
|
cd "$builddir"
|
||||||
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
|
||||||
}
|
}
|
||||||
|
|
||||||
md5sums="" #generate with 'abuild checksum'
|
sha512sums="" #generate with 'abuild checksum'
|
||||||
|
|
Loading…
Reference in New Issue