summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 19e2f8aaa1f1ac0f14af6b3febb4bc9b66fc6ae8 (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
43
44
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=gzip-git
pkgver=1.12.r42.g156d0e1
pkgrel=1
pkgdesc="A data compression program"
arch=('i686' 'x86_64')
url="https://www.gnu.org/software/gzip/"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'rsync')
provides=("gzip=$pkgver")
conflicts=('gzip')
source=("git+https://git.savannah.gnu.org/git/gzip.git")
sha256sums=('SKIP')


pkgver() {
  cd "gzip"

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

build() {
  cd "gzip"

  ./bootstrap
  ./configure \
    --prefix="/usr" \
    --disable-gcc-warnings
  make
}

check() {
  cd "gzip"

  make check
}

package() {
  cd "gzip"

  make DESTDIR="$pkgdir" install
}