Browse Source

Switch for in pacman-astronaut

master
mid-kid 9 years ago
parent
commit
e0de514464
  1. 6
      astronaut/pacman-astronaut

6
astronaut/pacman-astronaut

@ -18,7 +18,7 @@ _nuke_dir_install=true
[ "$_dir_pacman" ] && mkdir -p "$_dir_pacman" && cd "$_dir_pacman" || cd "$_topdir" [ "$_dir_pacman" ] && mkdir -p "$_dir_pacman" && cd "$_dir_pacman" || cd "$_topdir"
cat << EOF > "$dir_install/.PKGINFO" cat << EOF > "$dir_install/.PKGINFO"
pkgname = $name pkgname = $_satname
pkgver = $version-astro pkgver = $version-astro
pkgdesc = Generated with pacman-astronaut pkgdesc = Generated with pacman-astronaut
url = $update_url url = $update_url
@ -29,5 +29,5 @@ EOF
bsdtar --strip-components 1 -C "$dir_install" -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' . bsdtar --strip-components 1 -C "$dir_install" -czf .MTREE --format=mtree --options='!all,use-set,type,uid,gid,mode,time,size,md5,sha256,link' .
mv .MTREE "$dir_install/.MTREE" # bsdtar doesn't like the file being in the same directory. mv .MTREE "$dir_install/.MTREE" # bsdtar doesn't like the file being in the same directory.
fakeroot -- bsdtar --strip-components 1 -C "$dir_install" -cf - . | xz -c -z - > "$name-$version-astro-$(uname -m).pkg.tar.xz" fakeroot -- bsdtar --strip-components 1 -C "$dir_install" -cf - . | xz -c -z - > "$_satname-$version-astro-$(uname -m).pkg.tar.xz"
repo-add astronaut.db.tar.gz "$name-$version-astro-$(uname -m).pkg.tar.xz" repo-add astronaut.db.tar.gz "$_satname-$version-astro-$(uname -m).pkg.tar.xz"

Loading…
Cancel
Save