From b68a480e60cf4ffd1c83de77b7a40b34fd259567 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sat, 31 Jul 2021 11:55:49 +0000 Subject: [PATCH] added libpng --- pkgs/libpng/build.sh | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pkgs/libpng/build.sh diff --git a/pkgs/libpng/build.sh b/pkgs/libpng/build.sh new file mode 100644 index 0000000..99d31f1 --- /dev/null +++ b/pkgs/libpng/build.sh @@ -0,0 +1,28 @@ +pkgname=libpng +pkgver=1.6.37 + +fetch() { + curl -L "https://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz +} + +build() { + cd $pkgname-$pkgver + ./configure \ + --prefix=/usr \ + --build=$TRIPLE \ + --host=$TRIPLE + + make +} + +package() { + cd $pkgname-$pkgver + make install DESTDIR=$pkgdir +} + +license() { + cd $pkgname-$pkgver + cat LICENSE +# cat COPYING +}