summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorFantix King2015-12-30 00:19:17 +0800
committerFantix King2015-12-30 01:17:16 +0800
commit47da4bdc7a71c30eafde071292e04ac834ab36df (patch)
treef1555ce99ca79363f9c88b5cbeb8ea766a3ed66a
downloadaur-47da4bdc7a71c30eafde071292e04ac834ab36df.tar.gz
0.1.6-1.1
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD37
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3b84494dd3f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Tue Dec 29 17:17:08 UTC 2015
+pkgbase = libx32-libyaml
+ pkgdesc = YAML 1.1 library (x32 ABI)
+ pkgver = 0.1.6
+ pkgrel = 1.1
+ url = http://pyyaml.org/wiki/LibYAML
+ arch = x86_64
+ license = MIT
+ depends = libx32-glibc
+ depends = libyaml
+ source = http://pyyaml.org/download/libyaml/yaml-0.1.6.tar.gz
+ md5sums = 5fe00cda18ca5daeb43762b80c38e06e
+
+pkgname = libx32-libyaml
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0bb00d5e621
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 219618 2014-08-12 11:48:23Z bpiotrowski $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Michal Bozon <michal.bozon__at__gmail.com>
+# x32 Maintainer: Fantix King <fantix.king at gmail.com>
+
+_pkgbasename=libyaml
+pkgname=libx32-libyaml
+pkgver=0.1.6
+pkgrel=1.1
+pkgdesc="YAML 1.1 library (x32 ABI)"
+arch=('x86_64')
+url="http://pyyaml.org/wiki/LibYAML"
+license=('MIT')
+depends=('libx32-glibc' $_pkgbasename)
+source=(http://pyyaml.org/download/libyaml/yaml-$pkgver.tar.gz)
+md5sums=('5fe00cda18ca5daeb43762b80c38e06e')
+
+build() {
+ export CC='gcc -mx32'
+ export CXX="g++ -mx32"
+ export PKG_CONFIG_PATH=/usr/libx32/pkgconfig
+
+ cd "$srcdir/yaml-$pkgver"
+ ./configure --prefix=/usr --libdir=/usr/libx32
+ make
+}
+
+package() {
+ cd "$srcdir/yaml-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ rm -rf "${pkgdir}/usr/include"
+
+ mkdir -p "$pkgdir/usr/share/licenses"
+ ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
+}
+