blob: 6b18cf2d98a3aa9515584e55b4b9d7784d709d73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Maintainer: éclairevoyant
_pkgname=shc
pkgname=shc-git
pkgver=4.0.3.r10.6495e11e
pkgrel=1
pkgdesc="Generic shell script compiler"
arch=(x86_64)
url="https://github.com/neurobin/$_pkgname"
license=(GPL3)
depends=(glibc)
makedepends=(git)
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("git+$url.git")
b2sums=('SKIP')
pkgver() {
cd $_pkgname
git blame -s -L"/^PACKAGE_VERSION=/,+1" configure | awk '{
ver = gensub(/[^0-9.]/, "", "g", $3);
"git rev-list --count "$1"..HEAD" | getline commit_count;
print ver".r"commit_count"."$1
}'
}
build() {
cd $_pkgname
./autogen.sh
./configure --prefix=/usr
make
}
package() {
cd $_pkgname
make DESTDIR="$pkgdir/" install
}
|