diff options
author | Genki Sky | 2018-06-23 20:37:55 -0400 |
---|---|---|
committer | Genki Sky | 2018-06-23 20:45:20 -0400 |
commit | ed934e6f2967ffb03b7e180fda7f82847b8f10a4 (patch) | |
tree | f3e5158bf60c3a86b2e14c9f39685b0667e55eda | |
download | aur-ed934e6f2967ffb03b7e180fda7f82847b8f10a4.tar.gz |
Init
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cd25579f8ae3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = slurp-git + pkgdesc = Select a region in a Wayland compositor + pkgver = 1 + pkgrel = 1 + url = https://github.com/emersion/slurp + arch = x86_64 + license = MIT + makedepends = git + makedepends = meson + makedepends = scdoc + depends = cairo + depends = wayland + provides = slurp + conflicts = slurp + source = git://github.com/emersion/slurp + sha256sums = SKIP + +pkgname = slurp-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..972b2bb19a21 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,31 @@ +pkgname=slurp-git +pkgver=1 +pkgrel=1 +pkgdesc='Select a region in a Wayland compositor' +arch=('x86_64') +url='https://github.com/emersion/slurp' +license=('MIT') +depends=('cairo' 'wayland') +makedepends=('git' 'meson' 'scdoc') +provides=('slurp') +conflicts=('slurp') +source=('git://github.com/emersion/slurp') +sha256sums=('SKIP') + +pkgver() { + cd slurp + git log -1 --format='%cd.%h' --date=short | tr -d - +} + +build() { + cd slurp + meson --prefix=/usr build + ninja -C build +} + +package() { + cd slurp + DESTDIR="$pkgdir" ninja -C build install + install -D -m 0644 LICENSE "$pkgdir"/usr/share/licenses/slurp/LICENSE + install -D -m 0644 README.md "$pkgdir"/usr/share/doc/slurp/README.md +} |