#!/bin/bash

rm -fr /tmp/test_repository
mkdir -p /tmp/test_repository/{app-misc/test,profiles}
echo test_repository > /tmp/test_repository/profiles/repo_name

cat << EOF > /tmp/test_repository/app-misc/test/test-0.ebuild
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
EOF

cat << EOF > /tmp/test_repository/app-misc/test/test-1.ebuild
EAPI="5"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd"
EOF

cat << EOF > /tmp/test_repository/app-misc/test/Manifest
EBUILD test-0.ebuild 119 RMD160 2b7db7824af4639f3173bd80a9a682f26f1afbb1 SHA1 5802d75b9470dc522230eeb35673bff8888a69b7 SHA256 92c8c9618618ec1aa7f68f245d0b6e6e377687345ffd02c72990f019222d513e
EBUILD test-1.ebuild 128 RMD160 2290f7ccb7247811d0fb085aa952a2255db1dea6 SHA1 79726b8bdcc1afa7646a891fa2896624ba4e03e0 SHA256 0088eb13e2653293046e087717dc85803756c10e6cc9d8489608407fa077c4b1
EOF
