From b3a553536000f3a2684aa061e83ac759a429da99 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sun, 21 Jun 2009 20:00:00 +1000 Subject: Fix typos in PKGBUILD man page Original-patch-by: Jason Ribeiro Signed-off-by: Allan McRae --- doc/PKGBUILD.5.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/PKGBUILD.5.txt b/doc/PKGBUILD.5.txt index 41c468ee..ef6bace0 100644 --- a/doc/PKGBUILD.5.txt +++ b/doc/PKGBUILD.5.txt @@ -161,7 +161,7 @@ name. The syntax is: `source=('filename::url')`. Versioned provisions are also possible, in the 'name=version' format. For example, dcron can provide 'cron=2.0' to satisfy the 'cron>=2.0' dependency of other packages. Provisions involving the '>' and '<' - operators are invalid as only specifc versions of a package may be + operators are invalid as only specific versions of a package may be provided. *replaces (array)*:: @@ -221,7 +221,7 @@ name. The syntax is: `source=('filename::url')`. operation, even if the version number would normally not trigger such an upgrade. This is useful when the version numbering scheme of a package changes (or is alphanumeric). See linkman:pacman[8] for - more infomation on version comparisons. + more information on version comparisons. build() Function -- cgit v1.2.3-70-g09d2 From 02acf65ef30048ba3c732628d30215467245e779 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Fri, 19 Jun 2009 14:33:09 -0400 Subject: makepkg: Download sources and check checksums for any source package. It wouldn't be very nice to ship a PKGBUILD with the wrong checksums. Signed-off-by: Loui Chang Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 433fe348..b555a031 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -1012,15 +1012,15 @@ create_package() { create_srcpackage() { cd "$startdir" - if [ "$SOURCEONLY" -eq 2 ]; then - # get back to our src directory so we can begin with sources - mkdir -p "$srcdir" - cd "$srcdir" - download_sources - # we can only check checksums if we have all files - check_checksums - cd "$startdir" - fi + + # Get back to our src directory so we can begin with sources. + mkdir -p "$srcdir" + cd "$srcdir" + download_sources + # We can only check checksums if we have all files. + check_checksums + cd "$startdir" + msg "$(gettext "Creating source package...")" local srclinks="$(mktemp -d "$startdir"/srclinks.XXXXXXXXX)" mkdir "${srclinks}"/${pkgbase} -- cgit v1.2.3-70-g09d2 From 01f9ae63e72a9bc41cccfef17d5c07673972f455 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Mon, 22 Jun 2009 02:04:44 -0400 Subject: makepkg: Move .PKGINFO creation into a function. Signed-off-by: Loui Chang Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index b555a031..2140ff09 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -871,22 +871,7 @@ tidy_install() { fi } -create_package() { - if [ -z "$1" ]; then - nameofpkg="$pkgname" - else - nameofpkg="$1" - fi - - if [ ! -d "$pkgdir" ]; then - error "$(gettext "Missing pkg/ directory.")" - plain "$(gettext "Aborting...")" - exit 1 # $E_MISSING_PKGDIR - fi - - cd "$pkgdir" - msg "$(gettext "Creating package...")" - +write_pkginfo() { local builddate=$(date -u "+%s") if [ -n "$PACKAGER" ]; then local packager="$PACKAGER" @@ -958,6 +943,25 @@ create_package() { warning "$(gettext "Please add a license line to your %s!")" "$BUILDSCRIPT" plain "$(gettext "Example for GPL\'ed software: license=('GPL').")" fi +} + +create_package() { + if [ ! -d "$pkgdir" ]; then + error "$(gettext "Missing pkg/ directory.")" + plain "$(gettext "Aborting...")" + exit 1 # $E_MISSING_PKGDIR + fi + + if [ -z "$1" ]; then + nameofpkg="$pkgname" + else + nameofpkg="$1" + fi + + write_pkginfo $nameofpkg + + cd "$pkgdir" + msg "$(gettext "Creating package...")" local comp_files=".PKGINFO" -- cgit v1.2.3-70-g09d2