abuild/tests/testrepo/bin-in-path/APKBUILD

34 lines
502 B
Plaintext

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
# test package
pkgname=bin-in-path
pkgver=1.0
pkgrel=0
pkgdesc="Dummy test package that installs a file and directory in path"
url="https://gitlab.alpinelinux.org/alpine/aports"
arch="noarch"
license="MIT"
source=""
prepare() {
mkdir -p "$builddir"
}
build() {
true
}
check() {
true
}
package() {
mkdir -p "$pkgdir/usr/bin"
cat >"$pkgdir/usr/bin/foo" <<EOF
#!/bin/sh
EOF
chmod +x "$pkgdir/usr/bin/foo"
mkdir -p "$pkgdir/usr/bin/dir/"
}