You are not logged in.

#1 2012-03-05 06:15:10

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

reduce diskspace and show changelog of PKGBUILD -hg/svn/git.proto

I've some idea about improve AUR PKGBUILD quality, that's about the .proto files in abs package.
1. reduce disk space usage
2. makepkg show changelog for svn/git/hg/... after package()
3. makepkg check if the PKGBUILD following .proto spec

reduce disk space usage

To reduce makepkg disk space, use the internal command (hg/svn) to duplicate source to destination is better than just copy.
I've posted about this suggestion,  please help me to vote it.

https://bugs.archlinux.org/task/28481
https://bugs.archlinux.org/task/28697

makepkg show changelog for svn/git/hg/... after package()
I wish this function built in makepkg
eg. 
for hg

package() {
...
 msg2 "changelog(last 10)"
  (cd  $srcdir/$_hgrepo ; \
    hg log -l 10 --template '{node|short} {date|shortdate} {desc|firstline}\n')
}

for git

  msg2 "changelog(last 2)"
  (cd $srcdir/$_gitname.git ; git log -2 --decorate=no | cat)

makepkg check if the PKGBUILD following .proto spec

1. let makepkg call namcap by default to check compiled file.
2. let makepkg show warning if PKGBUILD missing something.
3. provide an option to disable previous function when want to build large amount PKGBUILD

in both /usr/share/pacman/PKGBUILD-git.proto and foo-git.PKGBUILD
a new keyword proto="git.20120305-1" exist

If they are the same then skip the check, if they are different, show 'Warning: mismatch /usr/share/pacman/PKGBUILD-git.proto"
For those PKGBUILD named with postfix git, also check if the proto is prefix with same name 'git'.


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

Board footer

Powered by FluxBB