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 \ --with-zlib-prefix=/usr \ --build=$TRIPLE \ --host=$TRIPLE make } package() { cd $pkgname-$pkgver make install DESTDIR=$pkgdir } backup() { return } license() { cd $pkgname-$pkgver cat LICENSE # cat COPYING }