]> git.immae.eu Git - perso/Immae/Config/AUR.git/commitdiff
PKGBUILD: assume $srcdir, as noted in PKGBUILD(5)
authormar77i <mar77i@mar77i.ch>
Sat, 3 Sep 2016 11:28:48 +0000 (13:28 +0200)
committermar77i <mar77i@mar77i.ch>
Sat, 3 Sep 2016 11:28:48 +0000 (13:28 +0200)
PKGBUILD

index 314d1436e2ee065fb09a3df0c9ecef5546638a64..6221c6bdeeab345884d1dade4ca5a61ebae4a67e 100644 (file)
--- 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"