commit c35f834fcceda4e6f62b7241bf34912ba3c61bed Author: xhaa123 Date: Wed Oct 30 00:21:46 2024 +0800 libyaml 0.2.5-1 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d1757d3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,30 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libyaml +pkgver=0.2.5 +pkgrel=1 +pkgdesc="YAML 1.1 library" +arch=('x86_64') +url="https://pyyaml.org/wiki/LibYAML" +license=('MIT') +depends=('glibc') +source=(https://github.com/yaml/libyaml/releases/download/${pkgver}/${pkgname#lib}-${pkgver}.tar.gz) +sha256sums=(c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4) + +build() { + cd ${pkgname#lib}-${pkgver} + + ${CONFIGURE} --disable-static + + make +} + +package() { + cd ${pkgname#lib}-${pkgver} + + make DESTDIR=${pkgdir} install +}