1 # Maintainer: Anselm Helbig <anselm.helbig+aur@googlemail.com>
5 pkgdesc='A tool for "re-ptying" programs'
7 url="https://github.com/nelhage/reptyr"
14 _gitroot="git://github.com/nelhage/reptyr.git"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33 cd "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
40 mkdir -p $pkgdir/usr/bin
41 cp reptyr $pkgdir/usr/bin
42 mkdir -p $pkgdir/usr/share/licenses/reptyr
43 cp COPYING $pkgdir/usr/share/licenses/reptyr
44 mkdir -p $pkgdir/usr/share/doc/reptyr
45 cp NOTES README $pkgdir/usr/share/doc/reptyr