wok-current annotate reptyr/receipt @ rev 24055
Add current_version for most github hosted softwares
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 08:46:05 2021 +0000 (2021-06-08) |
parents | 91afa79e06ed |
children | ac8ca9758df1 |
rev | line source |
---|---|
pascal@16767 | 1 # SliTaz package receipt. |
pascal@16767 | 2 |
pascal@16767 | 3 PACKAGE="reptyr" |
pascal@21885 | 4 VERSION="0.7.0" |
pascal@16767 | 5 CATEGORY="system-tools" |
pascal@16767 | 6 SHORT_DESC="Reparent a running program to a new terminal" |
pascal@16767 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16767 | 8 LICENSE="MIT" |
pascal@16767 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@16767 | 10 WEB_SITE="https://github.com/nelhage/reptyr" |
pascal@16767 | 11 WGET_URL="$WEB_SITE/archive/$TARBALL" |
pascal@16767 | 12 |
pascal@16767 | 13 DEPENDS="" |
pascal@16767 | 14 BUILD_DEPENDS="wget" |
pascal@16767 | 15 |
pascal@24055 | 16 current_version() |
pascal@24055 | 17 { |
pascal@24055 | 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 19 sed '/archive.*tar/!d;s|.*/reptyr-\(.*\).tar.*|\1|;q' |
pascal@24055 | 20 } |
pascal@24055 | 21 |
pascal@16767 | 22 # Rules to configure and make the package. |
pascal@16767 | 23 compile_rules() |
pascal@16767 | 24 { |
pascal@16767 | 25 sed -i 's|/usr/local|/usr|' Makefile |
pascal@21887 | 26 sed -i 's|PTRACE_GETREGSET|0x4204|;s|PTRACE_SETREGSET|0x4205|' \ |
pascal@21887 | 27 platform/linux/linux_ptrace.c |
pascal@16767 | 28 make && |
pascal@16767 | 29 make DESTDIR=$DESTDIR install |
pascal@16767 | 30 } |
pascal@16767 | 31 |
pascal@16767 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16767 | 33 genpkg_rules() |
pascal@16767 | 34 { |
pascal@16767 | 35 mkdir -p $fs/usr |
pascal@16767 | 36 cp -a $install/usr/bin $fs/usr |
pascal@16767 | 37 } |
pascal@16767 | 38 |