diff options
author | Chocobo1 | 2017-11-04 22:25:32 +0800 |
---|---|---|
committer | Chocobo1 | 2017-11-04 22:32:59 +0800 |
commit | 8453239c4aaaeef4d922563ce8b9b413cc3922dd (patch) | |
tree | eec5ab399e290f5cc479b93dbca685f34a4aa059 | |
download | aur-8453239c4aaaeef4d922563ce8b9b413cc3922dd.tar.gz |
newpkg: desktop-file-utils-git 0.23.r3.g5b88c95-1
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7eba586d2026 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = desktop-file-utils-git + pkgdesc = Command line utilities for working with desktop entries + pkgver = 0.23.r3.g5b88c95 + pkgrel = 1 + url = https://www.freedesktop.org/wiki/Software/desktop-file-utils/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = git + depends = glibc + depends = glib2 + provides = desktop-file-utils + conflicts = desktop-file-utils + source = git+https://anongit.freedesktop.org/git/xdg/desktop-file-utils.git + source = update-desktop-database.hook::https://git.archlinux.org/svntogit/packages.git/plain/trunk/update-desktop-database.hook?h=packages/desktop-file-utils + sha256sums = SKIP + sha256sums = SKIP + +pkgname = desktop-file-utils-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c8ecdb548d00 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> + +pkgname=desktop-file-utils-git +pkgver=0.23.r3.g5b88c95 +pkgrel=1 +pkgdesc="Command line utilities for working with desktop entries" +arch=('i686' 'x86_64') +url="https://www.freedesktop.org/wiki/Software/desktop-file-utils/" +license=('GPL') +depends=('glibc' 'glib2') +makedepends=('git') +provides=('desktop-file-utils') +conflicts=('desktop-file-utils') +source=("git+https://anongit.freedesktop.org/git/xdg/desktop-file-utils.git" + "update-desktop-database.hook::https://git.archlinux.org/svntogit/packages.git/plain/trunk/update-desktop-database.hook?h=packages/desktop-file-utils") +sha256sums=('SKIP' + 'SKIP') + + +pkgver() { + cd "desktop-file-utils" + + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "desktop-file-utils" + + ./autogen.sh + ./configure --prefix="/usr" + make +} + +package() { + cd "desktop-file-utils" + + make DESTDIR="$pkgdir" install + + install -Dm644 "$srcdir/update-desktop-database.hook" "$pkgdir/usr/share/libalpm/hooks/update-desktop-database.hook" +} |