mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 05:04:45 +08:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
pkgname=desktop-file-utils
|
|
pkgver=0.23+4+g92af410
|
|
pkgrel=1
|
|
pkgdesc="Command line utilities for working with desktop entries"
|
|
arch=('x86_64')
|
|
url="http://www.freedesktop.org/wiki/Software/desktop-file-utils"
|
|
license=('GPL')
|
|
depends=('glib2')
|
|
makedepends=(git)
|
|
source=("git+https://anongit.freedesktop.org/git/xdg/desktop-file-utils"
|
|
'update-desktop-database.hook')
|
|
#source=(https://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${pkgver}.tar.xz)
|
|
md5sums=('SKIP'
|
|
'63b2a090a303cbf9e244dc79b40fd81b')
|
|
validpgpkeys=('C01EDE5BB0D91E26D003662EC76BB9FEEAD12EA7') #Hans Petter Jansson <hpj@suse.com>
|
|
|
|
pkgver() {
|
|
cd $pkgname
|
|
git describe --tags | sed 's/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd "$pkgname"
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
# install pacman hook
|
|
install -Dm644 "$srcdir"/update-desktop-database.hook "$pkgdir"/usr/share/libalpm/hooks/update-desktop-database.hook
|
|
}
|