summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1899e82ced80198268a8b7264e41c5fe7f540d06 (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
35
# Maintainer: Manish Munikar <munikarmanish@gmail.com>

pkgname=photocrypt
pkgver=0.7
pkgrel=1
pkgdesc="A text-to-image steganography tool"
arch=("i686" "x86_64")
depends=("gtkmm3" "opencv" "openssl" "vtk" "hdf5")
makedepends=("gcc" "make" "pkg-config")
url="https://github.com/munikarmanish/photocrypt"
license=("BSD")
source=($pkgname-$pkgver.tar.gz::https://codeload.github.com/munikarmanish/$pkgname/tar.gz/$pkgver
        photocrypt.desktop
        photocrypt.png)
sha256sums=("18f1d08401856563ad2c3e71e20667da42c612aac9a29e8ccade209431caa41b"
            "cb94a180ac7dcd527679b71a1a64a178ad8785f4f2d865f2f3cb0ee7fc70d735"
            "cc6d04e2e570918209184d8c5d9cb10361ee899c6c4f4b678942728c7deee270")

build() {
  cd "$srcdir/$pkgname-$pkgver"

  msg "Building..."
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  msg "Installing..."
  make DESTDIR="$pkgdir" install

  msg "Installing desktop entry..."
  install -Dm 644 "${srcdir}/photocrypt.desktop" "${pkgdir}/usr/share/applications/photocrypt.desktop"
  install -Dm 644 "${srcdir}/photocrypt.png" "${pkgdir}/opt/photocrypt/photocrypt.png"
}