summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Weidenbaum2015-06-09 11:41:58 -0700
committerAndy Weidenbaum2015-06-09 11:41:58 -0700
commitaf9f51ed161e3b86e99bac4045db8f2bf59ae35f (patch)
treeb5f7f5726326b5fbf10f25b1e67d4b2c7f439882
downloadaur-af9f51ed161e3b86e99bac4045db8f2bf59ae35f.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD44
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e842689fba8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = dyncall-git
+ pkgdesc = Generic Dynamic FFI package
+ pkgver = 20150207
+ pkgrel = 1
+ url = https://github.com/MoarVM/dyncall
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = cmake
+ makedepends = git
+ makedepends = make
+ makedepends = yasm
+ provides = dyncall
+ conflicts = dyncall
+ source = git+https://github.com/MoarVM/dyncall
+ sha256sums = SKIP
+
+pkgname = dyncall-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..9a0a579525c
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+
+pkgname=dyncall-git
+pkgver=20150207
+pkgrel=1
+pkgdesc="Generic Dynamic FFI package"
+arch=('i686' 'x86_64')
+makedepends=('cmake'
+ 'git'
+ 'make'
+ 'yasm')
+url="https://github.com/MoarVM/dyncall"
+license=('custom')
+source=(git+https://github.com/MoarVM/dyncall)
+sha256sums=('SKIP')
+provides=('dyncall')
+conflicts=('dyncall')
+
+pkgver() {
+ cd ${pkgname%-git}
+ git log -1 --format="%cd" --date=short | sed "s|-||g"
+}
+
+build() {
+ cd ${pkgname%-git}
+
+ msg 'Building...'
+ cmake -DCMAKE_INSTALL_PREFIX=/usr ./
+ make
+}
+
+package() {
+ cd ${pkgname%-git}
+
+ msg 'Installing license...'
+ install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/${pkgname%-git}/LICENSE"
+
+ msg 'Installing...'
+ make DESTDIR="$pkgdir" install
+
+ msg 'Cleaning up pkgdir...'
+ find "$pkgdir" -type d -name .git -exec rm -r '{}' +
+ find "$pkgdir" -type f -name .gitignore -exec rm -r '{}' +
+}