summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e58d2c24ab3977f9908e8f6c4e2ff625d3217a11 (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
# Maintainer: Alexander V.Buev <san@zzz.spb.ru>

pkgname=hasher-priv 
pkgrel=1
pkgver=1.6.0.alt1.r0.gfc432c2
pkgdesc="Altlinux save package build & chroot system ( private part )"
arch=('i686' 'x86_64')
license=('GPL2')
url="http://www.altlinux.org/hasher"
groups=('base')
depends=('glibc' 'pam')
install=${pkgname}.install
source=(git+http://git.altlinux.org/people/ldv/packages/hasher-priv.git)
depends=('glibc')
makedepends=('help2man')
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd ${srcdir}/${pkgname}/${pkgname}
  patch -p0 < ../../../sbin.diff  
  make
}

check() {
  cd ${srcdir}/${pkgname}/${pkgname}
}

package() {
  cd ${srcdir}/${pkgname}/${pkgname}
  make DESTDIR=${pkgdir} install
}