[arch-commits] Commit in gcc/trunk (PKGBUILD)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Wed Dec 27 19:44:17 UTC 2017
Date: Wednesday, December 27, 2017 @ 19:44:16
Author: bpiotrowski
Revision: 313709
Add helper function for tarball generation
Modified:
gcc/trunk/PKGBUILD
----------+
PKGBUILD | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-27 19:26:14 UTC (rev 313708)
+++ PKGBUILD 2017-12-27 19:44:16 UTC (rev 313709)
@@ -27,8 +27,26 @@
'de48736f6e4153f03d0a5d38ceb6c6fdb7f054e8f47ddd6af0a3dbf14f27b931'
'2513c6d9984dd0a2058557bf00f06d8d5181734e41dcfe07be7ed86f2959622a')
+_svnrev=255990
+_svnurl=svn://gcc.gnu.org/svn/gcc/branches/gcc-${_majorver}-branch
_libdir=usr/lib/gcc/$CHOST/${pkgver%%+*}
+snapshot() {
+ svn export -r${_svnrev} ${_svnurl} gcc-r${_svnrev}
+
+ local datestamp basever _pkgver
+ basever=$(< gcc-r${_svnrev}/gcc/BASE-VER)
+ datestamp=$(< gcc-r${_svnrev}/gcc/DATESTAMP)
+ _pkgver=${basever}-${datestamp}
+
+ mv gcc-r${_svnrev} gcc-${_pkgver}
+ tar cf - gcc-${_pkgver} | xz > gcc-${_pkgver}.tar.xz
+ gpg -b gcc-${_pkgver}.tar.xz
+ #scp gcc-${_pkgver}.tar.xz{,.sig} sources.archlinux.org:/srv/ftp/other/gcc/
+
+ echo "pkgver=${_pkgver/-/+}"
+}
+
prepare() {
cd gcc
More information about the arch-commits
mailing list