blob: 46ed6b3bb4392394fcf3ded000d8ce9bcbffebe6 (
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
|
# Contributor: Kyle Keen <keenerd@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Tino Reichardt <milky-archlinux@mcmilk.de>
pkgname=dietlibc-cvs
pkgver=20150317
pkgrel=1
pkgdesc="a libc optimized for small size"
arch=('i686' 'x86_64')
url="https://www.fefe.de/dietlibc/"
license=("GPL")
options=('staticlibs')
makedepends=('cvs')
provides=(dietlibc)
conflicts=(dietlibc)
_cvsroot=":pserver:cvs@cvs.fefe.de:/cvs"
_cvsmod="dietlibc"
pkgver() { date --iso-8601|tr -d - ; }
prepare() {
cd $srcdir
msg "getting $_cvsmod from $_cvsroot ..."
if [ -d $_cvsmod/CVS ]; then
cd $_cvsmod
cvs -z9 update -d
else
cvs -d $_cvsroot -z9 co $_cvsmod
fi
}
build() {
rm -rf "$srcdir/$_cvsmod-build"
cp -r "$srcdir/$_cvsmod" "$srcdir/$_cvsmod-build"
cd "$srcdir/$_cvsmod-build"
make
}
package() {
cd "$srcdir/$_cvsmod-build"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir/usr/bin"
ln -s /opt/diet/bin/diet "$pkgdir/usr/bin/diet"
}
|