diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | Makefile.patch | 12 | ||||
-rw-r--r-- | PKGBUILD | 18 |
3 files changed, 9 insertions, 23 deletions
@@ -11,8 +11,6 @@ pkgbase = afetch-git provides = afetch conflicts = afetch source = git+https://github.com/13-CF/afetch - source = Makefile.patch - md5sums = SKIP md5sums = SKIP pkgname = afetch-git diff --git a/Makefile.patch b/Makefile.patch deleted file mode 100644 index 0e16958148fb..000000000000 --- a/Makefile.patch +++ /dev/null @@ -1,12 +0,0 @@ -19,20c19,22 -< cp ./afetch /usr/local/bin/afetch -< chmod 711 /usr/local/bin/afetch ---- -> mkdir -p ${DESTDIR}/${PREFIX}/bin -> -> cp ./afetch ${DESTDIR}/${PREFIX}/bin/afetch -> chmod 711 ${DESTDIR}/${PREFIX}/bin/afetch -22c24 -< rm -f /usr/local/bin/afetch ---- -> rm -f ${DESTDIR}/${PREFIX}/bin/afetch @@ -21,20 +21,20 @@ options=() install= changelog= source=("git+https://github.com/13-CF/afetch" - "Makefile.patch") +) noextract=() -md5sums=("SKIP" "SKIP") +md5sums=("SKIP") -prepare() { - patch "$_pkgname/Makefile" -i Makefile.patch -} build() { - cd "$_pkgname" - make all + cd "$_pkgname" + make all } package() { - cd "$_pkgname" - make DESTDIR="$pkgdir/" PREFIX="/usr/" install + mkdir "${pkgdir}/usr/bin" -p + mkdir "${pkgdir}/usr/share/man/man1" -p + + cd "$_pkgname" + make DESTDIR="$pkgdir/" PREFIX="/usr/" install } |