# SliTaz package receipt. PACKAGE="reptyr" VERSION="0.9.0" CATEGORY="system-tools" SHORT_DESC="Reparent a running program to a new terminal." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="MIT" WEB_SITE="https://github.com/nelhage/reptyr" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$WEB_SITE/archive/$TARBALL" DEPENDS="" BUILD_DEPENDS="wget" current_version() { wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/reptyr-\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { sed -i 's|PTRACE_GETREGSET|0x4204|;s|PTRACE_SETREGSET|0x4205|' \ platform/linux/linux_ptrace.c make PREFIX=/usr && make install PREFIX=/usr DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders bin }