blob: 24b9214e89ada54d43814d30c83f76d67eabbfdd (
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
45
46
47
48
|
# Maintainer: Denis Kasak <dkasak|AT|termina.org.uk>
# Contributor: Allan McRae <allan@archlinux.org>
pkgname=gnulib-git
pkgver=v0.1.2033.gf402ce6e1
pkgrel=1
pkgdesc="GNU Portability Library"
arch=('any')
url="http://www.gnu.org/software/gnulib"
license=('custom')
provides=("gnulib=${pkgver}")
replaces=("gnulib<=${pkgver}")
conflicts=('gnulib')
makedepends=('git')
source=('git://git.savannah.gnu.org/gnulib.git')
md5sums=('SKIP')
pkgver() {
cd "$SRCDEST/gnulib"
git describe --always | sed 's|-|.|g'
}
build() {
cd "$srcdir/gnulib"
sed -i "/^[ ]*gnulib_dir=/s#\`[^\`]*\`#/usr/share/$pkgname#" gnulib-tool
make info
}
package() {
cd "$srcdir/gnulib"
install -dm755 $pkgdir/usr/share/$pkgname
install -m755 -t $pkgdir/usr/share/$pkgname check-module gnulib-tool
dir=$(find build-aux lib m4 modules top -type d)
for i in $dir; do
install -dm755 $pkgdir/usr/share/$pkgname/$i
install -Dm644 -t $pkgdir/usr/share/$pkgname/$i $(find $i -maxdepth 1 -type f)
done
cp -r doc tests $pkgdir/usr/share/$pkgname/
install -dm755 $pkgdir/usr/bin
ln -s /usr/share/gnulib-git/gnulib-tool $pkgdir/usr/bin/
ln -s /usr/share/gnulib-git/check-module $pkgdir/usr/bin/
install -Dm644 doc/gnulib.info $pkgdir/usr/share/info/gnulib.info
install -Dm644 COPYING $pkgdir/usr/share/licenses/${pkgname}/COPYING
}
|