This commit is contained in:
parent
3f2d19e47f
commit
cb7bf38d4c
1 changed files with 5 additions and 4 deletions
9
build.sh
9
build.sh
|
@ -1,10 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
name=$(grep '^pkgname=' PKGBUILD | cut -d'=' -f2)
|
makepkg --printsrcinfo > .SRCINFO
|
||||||
ver=$(grep '^pkgver=' PKGBUILD | cut -d'=' -f2)
|
name=$(grep 'pkgname' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
||||||
rel=$(grep '^pkgrel=' PKGBUILD | cut -d'=' -f2)
|
ver=$(grep 'pkgver' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
||||||
epoch=$(grep '^epoch=' PKGBUILD | cut -d'=' -f2)
|
rel=$(grep 'pkgrel' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
||||||
|
epoch=$(grep 'epoch' .SRCINFO | cut -d'=' -f2 | tr -d ' ')
|
||||||
if [ -n "$epoch" ] ; then
|
if [ -n "$epoch" ] ; then
|
||||||
epoch=$epoch:
|
epoch=$epoch:
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue