summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6b13cbb2b839b0adae49f6a6b405bfc815058016 (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
# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>

pkgname=reptyr-git
pkgver=0.6.2.66.g3f46356
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+-+.+g'|sed 's+^reptyr.++'  
}

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
}