2017-04-30 10:45:23 +02:00
|
|
|
#!/bin/sh -e
|
|
|
|
cd "$MESON_BUILD_ROOT"
|
|
|
|
. "$MESON_SUBDIR/meta"
|
|
|
|
wd="`pwd`/`mktemp -d pacman.XXXXXX`"
|
|
|
|
trap "rm -rf '$wd'" INT QUIT TERM EXIT
|
|
|
|
|
|
|
|
target="$name-$version-$arch.tar.xz"
|
|
|
|
fakeroot sh -e <<-EOF
|
|
|
|
DESTDIR="$wd" ninja install
|
|
|
|
cat > "$wd/.PKGINFO" <<END
|
|
|
|
pkgname = $name
|
|
|
|
pkgver = $version-1
|
|
|
|
pkgdesc = $summary
|
|
|
|
url = $url
|
|
|
|
builddate = \`date -u +%s\`
|
|
|
|
packager = $author
|
2017-07-24 03:46:06 +02:00
|
|
|
size = \`du -sb | cut -f1\`
|
2017-04-30 10:45:23 +02:00
|
|
|
arch = $arch
|
|
|
|
END
|
|
|
|
cd "$wd" && tar cJf "../$target" .PKGINFO *
|
|
|
|
echo Written $target
|
|
|
|
EOF
|