diff options
author | Yannic Haupenthal | 2019-12-14 22:31:50 +0100 |
---|---|---|
committer | Yannic Haupenthal | 2019-12-14 22:31:50 +0100 |
commit | f948f025a9258f67052eb6ee3702632f6c088c2a (patch) | |
tree | 4fb04f5c9f119e057fece3b967f87ff4ce5a192a /PKGBUILD | |
parent | c93257db4912deb3438a9aca7102077eec2f0a34 (diff) | |
download | aur-multipass.tar.gz |
update source + version; notice custom config.h
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 23 insertions, 11 deletions
@@ -1,23 +1,35 @@ # Maintainer: yhaupenthal <y dot h plus aur at posteo dot de> pkgname=multipass -pkgver='17.09' -pkgrel=3 +pkgver='18.06' +pkgrel=1 pkgdesc='Broadcast X11 key events to multiple windows' arch=('any') -url='https://github.com/vain/multipass' +url='https://www.uninformativ.de/git/multipass' license=('MIT') depends=('libx11' 'libxft') makedepends=('git') -source=("https://github.com/vain/${pkgname}/archive/v${pkgver}.tar.gz" - "https://raw.githubusercontent.com/vain/${pkgname}/master/LICENSE") -sha256sums=('001f760bde3392e9289f03987c2a5dbc61e8adcc4b575cfad96da88b28ba18fe' - 'SKIP') +source=('git+https://www.uninformativ.de/git/multipass.git') +md5sums=('SKIP') + +prepare() { + cd "$srcdir/$pkgname" + + # custom config + echo "$SRCDEST" + if [ -e "$SRCDEST"/config.h ] ; then + echo 'Using custom config.h' + cp "$SRCDEST"/config.h . + else + cp config.def.h config.h + fi +} + build() { - cd "${srcdir}/${pkgname}-${pkgver}" + cd "$srcdir/$pkgname" make } + package() { - cd "${srcdir}/${pkgname}-${pkgver}" - install -D -m 644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - install -D -m 755 "${srcdir}/${pkgname}-${pkgver}/${pkgname}" "${pkgdir}/usr/bin/${pkgname}" + cd "$srcdir/$pkgname" + install -Dm 755 "$srcdir/$pkgname/$pkgname" "$pkgdir/usr/bin/$pkgname" } |