From: mar77i Date: Sat, 3 Sep 2016 11:28:48 +0000 (+0200) Subject: PKGBUILD: assume $srcdir, as noted in PKGBUILD(5) X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=dc05f486ca8fd0bf3ef85604125ada81f28ae9d5;p=perso%2FImmae%2FConfig%2FAUR.git PKGBUILD: assume $srcdir, as noted in PKGBUILD(5) --- diff --git a/PKGBUILD b/PKGBUILD index 314d143..6221c6b 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -19,13 +19,13 @@ provides=("${_pkgname}") conflicts=("${_pkgname}") pkgver() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" git log -1 --format='%cd.%h' --date=short | tr -d - } prepare() { local file - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" sed \ -e '/char font/s/= .*/= "Fixed:pixelsize=13:style=SemiCondensed";/' \ -e '/char worddelimiters/s/= .*/= " '"'"'`\\\"()[]{}<>|";/' \ @@ -52,12 +52,12 @@ prepare() { } build() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" make X11INC=/usr/include/X11 X11LIB=/usr/lib/X11 } package() { - cd "${srcdir}/${_pkgname}" + cd "${_pkgname}" make PREFIX=/usr DESTDIR="${pkgdir}" install install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README"