summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e0e49f048d4ff27d543fdd9f771318704cc53d0a (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
28
29
30
31
32
33
34
# Maintainer: Oliver Anhuth <oliver.anhuth at zoho.com>

pkgname=envview
pkgver=1.0.1
pkgrel=1
pkgdesc="A simple graphical viewer for (inherited) environment variables"
arch=("i686" "x86_64")
url="https://github.com/oliver-anhuth/envview"
license=("MIT")
depends=("qt5-base")
makedepends=("qt5-base" "gcc-multilib")
source=("$pkgname-$pkgver.tar.gz::https://github.com/oliver-anhuth/envview/archive/$pkgver.tar.gz")
sha256sums=("a951446c878c7dc5b608ac36d0f02b6484cb8116bb6479eca44b40eaafa9b266")

prepare() {
    cd ${srcdir}/${pkgname}-${pkgver}

    # Adjust version in source code
    mv main_window.cpp tmp-393d8225-f69f-47e2-b55f-76b57c91373a
    sed "s/version = \".....\"/version = \"$pkgver\"/" \
            tmp-393d8225-f69f-47e2-b55f-76b57c91373a >main_window.cpp
    rm tmp-393d8225-f69f-47e2-b55f-76b57c91373a
}

build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    ./configure
    make
}

package() {
    cd ${srcdir}/${pkgname}-${pkgver}
    make -f install.make DESTDIR="${pkgdir}" install
}