[Solved] APKBUILD configuration

5 posts / 0 new
Last post
#1 Wed, 2018-01-17 16:10
Flaf
  • Flaf's picture
  • Offline
  • Last seen: 2 months 1 week ago
  • Joined: 2018-01-17

Hi guys.
What if I don't want provide any $source url, but just a path to tar.gz archive? Just to pass this path to $source variable doesn't work.

Wed, 2018-01-17 19:22
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

Have you tried placing the tar.gz file in the working directory before running `abuild`?

Wed, 2018-01-17 19:36 (Reply to #2)
Flaf
  • Flaf's picture
  • Offline
  • Last seen: 2 months 1 week ago
  • Joined: 2018-01-17

Yes. After run abuild -r abuild create symlink $builddir/archive.tar.gz but then print error that checksums did not match and ERROR: $pkgname: all failed

Wed, 2018-01-17 20:50
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

For the checksums, run this command in the working directory that contains the APKBUILD and the .tar.gz (plus any other files you need):

abuild checksum

See also https://wiki.alpinelinux.org/wiki/APKBUILD_Reference#md5sums.2Fsha256sums.2Fsha512sums

For your $pkgname error, I think we need to see the APKBUILD itself (all of it).

Wed, 2018-01-17 22:14 (Reply to #4)
Flaf
  • Flaf's picture
  • Offline
  • Last seen: 2 months 1 week ago
  • Joined: 2018-01-17

Oh, I forgot about it. Thanks a lot.
P.S.: sorry for stupid question.

Log in or register to post comments