summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2e41daf2de10109f0a8b994619cad54dce1ca459 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=reptyr-git
pkgver=0.7.0.r2.gd2b0b06
pkgrel=1
pkgdesc='Utility for taking an existing running program and attaching it to a new terminal'
arch=('x86_64')
license=('BSD')
url="https://github.com/nelhage/reptyr"
depends=('glibc')
makedepends=('git')
conflicts=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+https://github.com/nelhage/${pkgname%-git}.git")
md5sums=('SKIP')

pkgver() {
  cd ${pkgname%-git}
  git describe --tags | sed 's+^reptyr.++' | sed "s+-+.r+" | tr - .  
}

prepare() {
  cd ${pkgname%-git}
  sed -e 's/-Werror//' -i Makefile
}

build() {
  cd ${pkgname%-git}
  make
}

package() {
   cd ${pkgname%-git}
   make "DESTDIR=$pkgdir" "PREFIX=/usr" install
   install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}