summaryrefslogtreecommitdiff
path: root/mbsync
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2016-01-18 19:29:32 -0700
committerAaron Ball <nullspoon@iohq.net>2016-01-18 19:29:32 -0700
commit5678aa5727ffed4d1176361797130008ed191f3c (patch)
tree0269ebf1972cf5fbccee83f206836c155a5eebe3 /mbsync
parenta65314a5dcd08552e0383272b9451581719d2c18 (diff)
downloadports-5678aa5727ffed4d1176361797130008ed191f3c.tar.gz
ports-5678aa5727ffed4d1176361797130008ed191f3c.tar.xz
isync:syntax fixes
Diffstat (limited to 'mbsync')
-rw-r--r--mbsync/Pkgfile45
1 files changed, 23 insertions, 22 deletions
diff --git a/mbsync/Pkgfile b/mbsync/Pkgfile
index c552981..99b134f 100644
--- a/mbsync/Pkgfile
+++ b/mbsync/Pkgfile
@@ -11,27 +11,28 @@ source=()
gitsource=http://git.code.sf.net/p/isync/isync
build() {
- if cd $name; then
- git reset --hard
- git pull $gitsource
- else
- git clone $gitsource $name
- cd $name
- fi
-
- git checkout $version
-
- # TODO: Maybe remove this at some point.
- # This is because the git repo doesn't contain the file ChangeLog, which
- # causes autoreconf to fail on Makefile.am.
- touch ChangeLog
-
- autoreconf -fi
- ./configure --prefix=/usr --mandir=/usr/man --disable-compat
- make
- make DESTDIR=$PKG install
-
- rm -rf $PKG/usr/share/doc
+ if [[ -d ${name} ]]; then
+ cd ${name}
+ git reset --hard
+ git pull ${gitsource}
+ else
+ git clone ${gitsource} ${name}
+ cd ${name}
+ fi
+
+ git checkout ${version}
+
+ # TODO: Maybe remove this at some point.
+ # This is because the git repo doesn't contain the file ChangeLog, which
+ # causes autoreconf to fail on Makefile.am.
+ touch ChangeLog
+
+ autoreconf -fi
+ ./configure --prefix=/usr --mandir=/usr/man --disable-compat
+ make
+ make DESTDIR=${PKG} install
+
+ rm -rf ${PKG}/usr/share/doc
}
-# vim: set ft=sh ts=4 et:
+# vim: set ft=sh ts=2 et:

Generated by cgit