diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = detect-it-easy-git pkgdesc = Detect It Easy, or abbreviated "DIE" is a program for determining types of files - pkgver = 3.06 + pkgver = 3.10 pkgrel = 1 url = https://horsicq.github.io arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Arnaud Dovi <mr.dovi@gmail.com> pkgname=detect-it-easy-git -pkgver=3.06 +pkgver=3.10 pkgrel=1 pkgdesc='Detect It Easy, or abbreviated "DIE" is a program for determining types of files' arch=('x86_64') @@ -44,6 +44,11 @@ _color="\e[33m" _bold='\e[1m' _prefix=" ${_bold}${_color}==>${_stop} " +pkgver() { + cd "$_srcname" || return + printf "%s" "$(git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g')" +} + prepare() { cd "$srcdir/$_srcname" git submodule update --init --recursive @@ -89,7 +94,7 @@ package() { echo -e "${_prefix}Copying the package files" install -Dm 644 gui_source/translation/* -t "$pkgdir"/opt/"${_pkgname}"/lang install -Dm 644 XStyles/qss/* -t "$pkgdir"/opt/"${_pkgname}"/qss - install -Dm 644 Detect-It-Easy/info/* -t "$pkgdir"/opt/"${_pkgname}"/info + cp -r XInfoDB/info/* -t "$pkgdir"/opt/"${_pkgname}"/info/ cp -r Detect-It-Easy/db/* -t "$pkgdir"/opt/"${_pkgname}"/db/ install -Dm 644 signatures/crypto.db -t "$pkgdir"/opt/"${_pkgname}"/signatures cp -r images/* -t "$pkgdir"/opt/"${_pkgname}"/images/ |