Skip to content

Commit

Permalink
dietlibc: initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Nov 29, 2024
1 parent a0c12bb commit 83d7b58
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/dietlibc/PKGBUILD
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/"
}

0 comments on commit 83d7b58

Please sign in to comment.