1 snippet pkgver "pkgver() function" b
 
   3   cd ${1:$pkgname-$pkgver}
 
   5     git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
 
   6     printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
 
  11 snippet prep "prepare() function" b
 
  13   cd ${1:$pkgname-$pkgver}
 
  18 snippet build "build() function" b
 
  20   cd ${1:$pkgname-$pkgver}
 
  27 snippet pack "package() function" b
 
  29   cd ${1:$pkgname-$pkgver}
 
  30   make DESTDIR="$pkgdir" install