mirror of
https://github.com/archlinux/aur.git
synced 2025-12-10 08:05:42 +01:00
fix version and mkdir_link script
This commit is contained in:
parent
72d92d8eda
commit
b0d5b1bda3
2 changed files with 12 additions and 6 deletions
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
src
|
||||||
|
pkg
|
||||||
|
*.tar.gz
|
||||||
|
*.pkg.tar.zst
|
||||||
|
*.tar.zst
|
||||||
13
PKGBUILD
13
PKGBUILD
|
|
@ -1,6 +1,6 @@
|
||||||
# Maintainer: Kamil cukrowski <kmilcukrowski@gmail.com>
|
# Maintainer: Kamil cukrowski <kmilcukrowski@gmail.com>
|
||||||
pkgname=podpisgov
|
pkgname=podpisgov
|
||||||
pkgver=0.0.1 # Please update pkgver manually if a newer version is released
|
pkgver=1.5.5.4
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc="An application for digital signatures by Poland government."
|
pkgdesc="An application for digital signatures by Poland government."
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
|
|
@ -13,20 +13,21 @@ sha256sums=('0a6f5aa745b12c64be33c62822bd0efed355444c08accf60d2d28ce1a1ee8d1e')
|
||||||
mkdir_link() {
|
mkdir_link() {
|
||||||
echo "$2 -> $1"
|
echo "$2 -> $1"
|
||||||
install -d "$(dirname "$2")"
|
install -d "$(dirname "$2")"
|
||||||
ln -s "$@"
|
ln -s "$opt/$1" "$2"
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
# This path is hardocded in the desktop link.
|
# This path is hardocded in the desktop link.
|
||||||
local mydir="${pkgdir}/opt/PodpisGOV"
|
local opt=/opt/PodpisGOV
|
||||||
|
local mydir="${pkgdir}$opt"
|
||||||
# Create the installation directory
|
# Create the installation directory
|
||||||
install -d "${mydir}"
|
install -d "${mydir}"
|
||||||
# Move the extracted content to the target directory
|
# Move the extracted content to the target directory
|
||||||
mv "${srcdir}/PodpisGOV/"* "${mydir}/"
|
mv "${srcdir}/PodpisGOV/"* "${mydir}/"
|
||||||
# Install executable.
|
# Install executable.
|
||||||
mkdir_link "${mydir}/PodpisGOV" "${pkgdir}/usr/bin/PodpisGOV"
|
mkdir_link "PodpisGOV" "${pkgdir}/usr/bin/PodpisGOV"
|
||||||
# Install the desktop file
|
# Install the desktop file
|
||||||
mkdir_link "${mydir}/PodpisGOV.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
mkdir_link "PodpisGOV.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
|
||||||
# Install the license file
|
# Install the license file
|
||||||
mkdir_link "${mydir}/Licenses/License-pl.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
mkdir_link "Licenses/License-pl.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue