summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a74fb353155e009496a9d210a3ddb8f480b30c97 (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
38
39
40
41
42
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=sed-git
pkgver=4.4.r84.ga59fb88
pkgrel=1
pkgdesc="A non-interactive command-line text editor (stream editor)"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/sed/"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'rsync')
provides=('sed')
conflicts=('sed')
source=("git+https://git.savannah.gnu.org/git/sed.git")
sha256sums=('SKIP')


pkgver() {
  cd "sed"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "sed"

  ./bootstrap
  ./configure --prefix="/usr"
  make
}

check() {
  cd "sed"

  #make check
}

package() {
  cd "sed"

  make DESTDIR="$pkgdir" install
}