Created
April 4, 2019 21:14
-
-
Save pm0u/afe618f7db3f17e5b5afce9e3e777d94 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Nicolas Cornu <ncornu@aldebaran-robotics.com> | |
pkgname=proot | |
_pkgname=proot | |
pkgver=5.1.0 | |
pkgrel=3 | |
pkgdesc="chroot, mount --bind, and binfmt_misc without privilege/setup" | |
arch=('i686' 'x86_64') | |
url="http://proot.me" | |
license=('GPL') | |
provides=('proot') | |
depends=('talloc') | |
makedepends=('python-docutils' 'libxslt') | |
source=(${pkgname}-v${pkgver}.tar.gz::https://github.com/cedric-vincent/${_pkgname}/archive/v${pkgver}.tar.gz | |
0001-Fix-use-of-size.patch) | |
sha1sums=('e80b088e0bade515d8ccb8ce04155c892dc9f992' | |
'32de528010837ba7bc4d828f6e4b8f29570ec96e') | |
prepare() { | |
cd "${srcdir}/${pkgname}-5.1.0" | |
patch -p1 -i ${srcdir}/0001-Fix-use-of-size.patch | |
} | |
build() { | |
cd "${srcdir}"/${_pkgname}-${pkgver}/src | |
make -f GNUmakefile | |
cd "${srcdir}"/${_pkgname}-${pkgver}/doc | |
make -f GNUmakefile | |
} | |
package() { | |
cd "${srcdir}"/${_pkgname}-${pkgver} | |
install -m755 -d "${pkgdir}"/usr/bin | |
install -m755 src/${pkgname} "${pkgdir}"/usr/bin | |
install -m755 -d "${pkgdir}"/usr/share/man/man1/ | |
install -m644 -T doc/proot/man.1 "${pkgdir}"/usr/share/man/man1/${pkgname}.1 | |
install -m755 -d "${pkgdir}"/usr/share/doc/proot/ | |
install -m644 doc/proot/changelog.txt "${pkgdir}"/usr/share/doc/proot | |
install -m644 doc/proot/index.html "${pkgdir}"/usr/share/doc/proot | |
install -m644 doc/proot/manual.txt "${pkgdir}"/usr/share/doc/proot | |
install -m644 doc/proot/roadmap.txt "${pkgdir}"/usr/share/doc/proot | |
install -m755 -d "${pkgdir}"/usr/share/doc/proot/stylesheets | |
install -m644 doc/proot/stylesheets/* "${pkgdir}"/usr/share/doc/proot/stylesheets | |
} | |
# vim: ft=sh syn=sh et |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment