-
-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). | ||
# See COPYING for license details. | ||
# | ||
# Old Maintainer: tarball <[email protected]> | ||
# Old Contributor: Kyle Keen <[email protected]> | ||
# Old Contributor: Sergej Pupykin <[email protected]> | ||
# Old Contributor: Tino Reichardt <[email protected]> | ||
|
||
pkgname=dietlibc | ||
pkgver=0.35 | ||
pkgrel=1 | ||
pkgdesc='A libc optimized for small size.' | ||
arch=('x86_64' 'aarch64') | ||
url='https://www.fefe.de/dietlibc/' | ||
license=("GPL-2.0-only") | ||
options=('staticlibs') | ||
source=("https://www.fefe.de/$pkgname/$pkgname-$pkgver.tar.xz") | ||
sha512sums=('24adcdb0968c45f888fdb923f898b38d3b25e2bff09960000fbbefdfcb678d96632f7fe2987ba48c791001d134d606099a363b02b4b76ea7d477206d02844c89') | ||
|
||
build() { | ||
cd "$pkgname-$pkgver" | ||
|
||
make | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver" | ||
|
||
make DESTDIR="$pkgdir" install | ||
|
||
install -dm 755 "$pkgdir/usr/bin/" | ||
install -dm 755 "$pkgdir/usr/man/man1/" | ||
|
||
for bin in "$pkgdir"/opt/diet/bin/*; do | ||
ln -s /opt/diet/bin/"$(basename "$bin")" -t "$pkgdir/usr/bin/" | ||
done | ||
|
||
ln -s /opt/diet/man/man1/diet.1 -t "$pkgdir/usr/man/man1/" | ||
} | ||
|