diff options
author | larchunix | 2018-07-01 22:09:18 +0200 |
---|---|---|
committer | larchunix | 2018-08-13 20:28:19 +0200 |
commit | 9060a230c3669a73b8d9b0217f652f9a0c79db43 (patch) | |
tree | 4ef4b2dc402003a09c087c9e537532cc083ebb44 | |
download | aur-9060a230c3669a73b8d9b0217f652f9a0c79db43.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a6835ca0161b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = libmodulemd + pkgdesc = C Library for manipulating module metadata files + pkgver = 1.5.2 + pkgrel = 1 + url = https://github.com/fedora-modularity/libmodulemd + arch = i686 + arch = x86_64 + license = custom:MIT + makedepends = gobject-introspection + makedepends = gtk-doc + makedepends = meson + depends = glib2 + depends = libyaml + source = https://github.com/fedora-modularity/libmodulemd/releases/download/libmodulemd-1.5.2/modulemd-1.5.2.tar.xz + md5sums = 52d3e8d054dd6edbfcd68b988c8e9b12 + +pkgname = libmodulemd + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3bb4c83db538 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +pkgname=libmodulemd +pkgver=1.5.2 +pkgrel=1 +pkgdesc="C Library for manipulating module metadata files" +arch=('i686' 'x86_64') +url="https://github.com/fedora-modularity/$pkgname" +license=('custom:MIT') +depends=('glib2' 'libyaml') +makedepends=('gobject-introspection' 'gtk-doc' 'meson') +source=("$url/releases/download/$pkgname-$pkgver/${pkgname#lib}-$pkgver.tar.xz") +md5sums=('52d3e8d054dd6edbfcd68b988c8e9b12') + +prepare() { + mv "${pkgname#lib}-$pkgver" "$pkgname-$pkgver" +} + +build() { + cd "$pkgname-$pkgver" + arch-meson build -Ddeveloper_build=false + ninja -C build +} + +check() { + cd "$pkgname-$pkgver" + ninja -C build test +} + +package() { + cd "$pkgname-$pkgver" + DESTDIR="$pkgdir/" ninja -C build install + + install -Dp -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" + install -Dp -m644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +} + +# vim: set ft=sh ts=4 sw=4 noet: |