summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 14df813a5c2b3bbea3a5c7f46758c8b7d86a0d3e (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
pkgname=lnkedit
pkgver=1.1
pkgrel=3
pkgdesc="Command line editor of Windows shortcuts (.lnk files)"
arch=('i686' 'x86_64')
url="http://iain.cx/src/lnkedit/"
license=('custom')

depends=('wine')

source=("http://iain.cx/src/lnkedit/${pkgname}-${pkgver}.zip"
        "${pkgname}.patch"
        "fix-patching-noexistant-paths.patch")
sha1sums=('3e11d05032772739b5ced89cbad20a668d112d98'
          'b4aafc9c9816d45e18c6949886039d00ef53f95c'
          'bd59cac12a7e6e79e0e5027658b274600d9e9031')

prepare () {
    cd ${srcdir}/${pkgname}-${pkgver}/src
    patch < ${srcdir}/${pkgname}.patch
    patch < ${srcdir}/fix-patching-noexistant-paths.patch
}

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

package() {
    install -Dm755 ${srcdir}/${pkgname}-${pkgver}/src/${pkgname}.exe ${pkgdir}/usr/bin/${pkgname}
    install -Dm755 ${srcdir}/${pkgname}-${pkgver}/src/${pkgname}.exe.so ${pkgdir}/usr/bin/${pkgname}.exe.so
}

# vim:set ts=2 sw=2 et: