summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5d16cd3c2a420b2051f8f0ee3b16daf298271f94 (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
# Maintainer: Ben 'silentnoodle' Lönnqvist <lonnqvistben at gmail dot com>
pkgname=med-memory-editor
pkgver=3.6.1
pkgrel=2
pkgdesc='Linux alternative game memory editor'
arch=('i686' 'x86_64')
url='https://github.com/allencch/med'
license=('BSD')
depends=('jsoncpp' 'qt5-base' 'polkit')
makedepends=('cmake')
source=("https://github.com/allencch/med/archive/${pkgver}.tar.gz"
        org.archlinux.pkexec.med.policy
        med.desktop)
sha256sums=('8aaedfc257e950b9fe512c9134cecc6ccb2df4a62b4f0781962a8e21ae254884'
            'f09800e12134df7e65c7336cf9851be4013cb8795778941dbf97d5868894e76e'
            'dbaa52dd26fff0c1665773de587e62ef755391e1183cc001b6fe1a2658939448')

build() {
    cmake -DCMAKE_INSTALL_PREFIX=/usr -B build -S "med-${pkgver}"
}

package(){
    make -C build DESTDIR="$pkgdir/" install
    sed -i 's/qt/ui/g' $pkgdir/usr/bin/med
    install -Dm644 "med-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/med/LICENSE"
    install -Dm644 org.archlinux.pkexec.med.policy "$pkgdir/usr/share/polkit-1/actions/org.archlinux.pkexec.med.policy"
    install -Dm644 med.desktop "$pkgdir/usr/share/applications/med.desktop"
}