summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12cee3898913eb9244566d0e9d7d62c639b5a2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Maintainer: lrx0014 <lrx0014 at hotmail dot com>
pkgname=desktopimage
pkgver=1.0.0
pkgrel=1
pkgdesc="A tool to automatically generate .desktop files for AppImage applications."
arch=('x86_64')
url="https://github.com/lrx0014/DesktopImage"
license=('MIT')
depends=('glibc')
makedepends=('git' 'go')
source=("git+$url.git#tag=$pkgver")
sha256sums=('SKIP')

pkgver() {
    cd "$srcdir/DesktopImage"
    git describe --tags --always | sed 's/^v//'
}

build() {
    cd "$srcdir/DesktopImage/src"
    go build -o desktopimage main.go
}

package() {
    install -Dm755 "$srcdir/DesktopImage/src/desktopimage" "$pkgdir/usr/bin/desktopimage"
    install -Dm644 "$srcdir/DesktopImage/desktopimage.service" "$pkgdir/etc/systemd/system/desktopimage.service"
}