summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorOlivier Mehani2018-04-30 20:18:28 +1000
committerOlivier Mehani2018-04-30 20:18:28 +1000
commita253c6c5f64b9d92dac04c224844d83f1033a1a3 (patch)
treeba694150dae9979c50b62c9b55ae5e902672781a /PKGBUILD
parente3fadf3ee8a2f0bae2c72279e43daea110da015b (diff)
downloadaur-msva-perl-git.tar.gz
Split PKGBUILD into prepare/build/package functions
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4e8da6b143c..52529c5067d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,7 @@ conflicts=(msva-perl)
_gitroot="git://git.monkeysphere.info/msva-perl"
_gitname="msva-perl"
-build() {
+prepare() {
cd "$srcdir"
msg "Connecting to GIT server...."
@@ -30,10 +30,15 @@ build() {
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
+ }
+
+build() {
cd "$srcdir/$_gitname-build"
make || return 1
+ }
+ package() {
install -m 755 -D msva-perl $pkgdir/usr/bin/msva-perl
install -m 644 -D msva-perl.1 $pkgdir/usr/share/man/man1/msva-perl.1
install -m 755 -d $pkgdir/usr/share/perl5/vendor_perl/